From ab9597c6917a7b7ab28d7310c3769326560a7c35 Mon Sep 17 00:00:00 2001 From: LordNoteworthy Date: Sat, 28 Sep 2024 19:50:33 +1000 Subject: [PATCH] update query --- db/user-likes.n1ql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/user-likes.n1ql b/db/user-likes.n1ql index b4d5eca..d4d664b 100644 --- a/db/user-likes.n1ql +++ b/db/user-likes.n1ql @@ -44,6 +44,7 @@ FROM UNNEST s.likes AS userLikes ) AS l LEFT JOIN `bucket_name` f ON f.sha256 = l.sha256 -WHERE f.`type` = "file"OFFSET $offset +WHERE f.`type` = "file" +OFFSET $offset LIMIT $limit