fix: invalid type convert in apiv2 (#2380)

fix invalid type convert in apiv2
This commit is contained in:
Athurg Gooth 2023-10-13 22:53:58 +08:00 committed by GitHub
parent bacc529391
commit ed2e299797
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ func (s *MemoService) CreateMemo(ctx context.Context, request *apiv2pb.CreateMem
create := &store.Memo{
CreatorID: user.ID,
Content: request.Content,
Visibility: store.Visibility(request.Visibility),
Visibility: store.Visibility(request.Visibility.String()),
}
memo, err := s.Store.CreateMemo(ctx, create)
if err != nil {