fix: query now orders by id

This commit is contained in:
SoXX 2024-05-15 11:58:17 +02:00
parent 5fb2a1770a
commit 22cb71a375

View File

@ -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,