From ed2e2997976d73d99a70ed1cada675ff09515e9b Mon Sep 17 00:00:00 2001 From: Athurg Gooth Date: Fri, 13 Oct 2023 22:53:58 +0800 Subject: [PATCH] fix: invalid type convert in apiv2 (#2380) fix invalid type convert in apiv2 --- api/v2/memo_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v2/memo_service.go b/api/v2/memo_service.go index 6310d8af..feea7067 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 {