mirror of
https://github.com/usememos/memos.git
synced 2024-11-28 14:23:15 +03:00
fix: invalid type convert in apiv2 (#2380)
fix invalid type convert in apiv2
This commit is contained in:
parent
bacc529391
commit
ed2e299797
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user