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.

chore: tweak naming

Stevenefb15a045360
diff --git a/server/route/api/v2/memo_service.go b/server/route/api/v2/memo_service.go
index f62dadf53..f15ce9fae 100644
--- a/server/route/api/v2/memo_service.go
+++ b/server/route/api/v2/memo_service.go
@@ -343,12 +343,12 @@ func (s *APIV2Service) CreateMemoComment(ctx context.Context, request *apiv2pb.C
// Build the relation between the comment memo and the original memo.
memo := createMemoResponse.Memo
- memoId, err := ExtractMemoIDFromName(memo.Name)
+ memoID, err := ExtractMemoIDFromName(memo.Name)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, "invalid memo name: %v", err)
}
_, err = s.Store.UpsertMemoRelation(ctx, &store.MemoRelation{
- MemoID: memoId,
+ MemoID: memoID,
RelatedMemoID: relatedMemo.ID,
Type: store.MemoRelationComment,
})
@@ -366,7 +366,7 @@ func (s *APIV2Service) CreateMemoComment(ctx context.Context, request *apiv2pb.C
Level: store.ActivityLevelInfo,
Payload: &storepb.ActivityPayload{
MemoComment: &storepb.ActivityMemoCommentPayload{
- MemoId: memoId,
+ MemoId: memoID,
RelatedMemoId: relatedMemo.ID,
},
},