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.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: update find memo with updated time
Stevenaaec46a39cb3
diff --git a/api/v2/memo_service.go b/api/v2/memo_service.goindex 0e00e72ab..555e38add 100644--- a/api/v2/memo_service.go+++ b/api/v2/memo_service.go@@ -141,6 +141,14 @@ func (s *APIV2Service) ListMemos(ctx context.Context, request *apiv2pb.ListMemosmemoFind.VisibilityList = []store.Visibility{store.Public, store.Protected}}+ memoDisplayWithUpdatedTs, err := s.getMemoDisplayWithUpdatedTsSettingValue(ctx)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to get memo display with updated ts setting value")+ }+ if memoDisplayWithUpdatedTs {+ memoFind.OrderByUpdatedTs = true+ }+if request.Limit != 0 {offset, limit := int(request.Offset), int(request.Limit)memoFind.Offset = &offset