mirror of
https://github.com/usememos/memos.git
synced 2025-01-04 11:33:06 +08:00
fix: invalid type convert in apiv2 (#2380)
fix invalid type convert in apiv2
This commit is contained in:
parent
bacc529391
commit
ed2e299797
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue