From 22cb71a37544c41935c76113e38a41608a9589e8 Mon Sep 17 00:00:00 2001 From: SoXX Date: Wed, 15 May 2024 11:58:17 +0200 Subject: [PATCH] fix: query now orders by id --- internal/user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/user.go b/internal/user.go index d4f97c2..a65200e 100644 --- a/internal/user.go +++ b/internal/user.go @@ -333,6 +333,7 @@ func GetUserFavoriteNodeWithPagination(ctx context.Context, driver neo4j.DriverW MATCH (a:AnthrovePost)<-[r:REFERENCE]-(s:Source) WHERE a.post_id in faves RETURN a AS anthrovePost, r AS postRelation, s AS Source + ORDER BY id(a) ASC ` params := map[string]any{ "anthrove_user_id": anthroveUserID,