Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: invalid type convert in apiv2 (#2380)

Athurg Goothed2e2997976d
diff --git a/api/v2/memo_service.go b/api/v2/memo_service.go
index 6310d8afc..feea70679 100644
--- a/api/v2/memo_service.go
+++ b/api/v2/memo_service.go
@@ -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 {