fix: comment public flag
This commit is contained in:
parent
0010f216f3
commit
0dcd5fcf11
|
@ -25,6 +25,8 @@ type MockCommentRepository struct {
|
|||
isgomock struct{}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// MockCommentRepositoryMockRecorder is the mock recorder for MockCommentRepository.
|
||||
type MockCommentRepositoryMockRecorder struct {
|
||||
mock *MockCommentRepository
|
||||
|
|
|
@ -97,7 +97,10 @@ func (use *CommentUseCase) GetCommentItem(ctx context.Context, id string) (*usec
|
|||
}
|
||||
|
||||
func (use *CommentUseCase) UpdateCommentMessage(ctx context.Context, id string, message string, isVisitable bool) error {
|
||||
err := use.Comment.UpdateCommentMessage(ctx, id, message, isVisitable)
|
||||
snappyContent := snappy.Encode(nil, []byte(message))
|
||||
msg := base64.StdEncoding.EncodeToString(snappyContent)
|
||||
|
||||
err := use.Comment.UpdateCommentMessage(ctx, id, msg, isVisitable)
|
||||
if err != nil {
|
||||
return errs.DatabaseErrorWithScopeL(
|
||||
code.CloudEPComment,
|
||||
|
|
Loading…
Reference in New Issue