mirror of
https://github.com/usememos/memos.git
synced 2025-04-03 20:31:10 +02: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{
|
create := &store.Memo{
|
||||||
CreatorID: user.ID,
|
CreatorID: user.ID,
|
||||||
Content: request.Content,
|
Content: request.Content,
|
||||||
Visibility: store.Visibility(request.Visibility),
|
Visibility: store.Visibility(request.Visibility.String()),
|
||||||
}
|
}
|
||||||
memo, err := s.Store.CreateMemo(ctx, create)
|
memo, err := s.Store.CreateMemo(ctx, create)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user