chore: sort by pinned

This commit is contained in:
Johnny
2025-03-13 19:57:12 +08:00
parent d794e6db76
commit 34ab88348e
9 changed files with 29 additions and 19 deletions

View File

@@ -108,6 +108,7 @@ func (s *APIV1Service) ListMemos(ctx context.Context, request *v1pb.ListMemosReq
return nil, status.Errorf(codes.InvalidArgument, "invalid parent: %v", err)
}
memoFind.CreatorID = &userID
memoFind.OrderByPinned = true
}
if request.State == v1pb.State_ARCHIVED {
state := store.Archived