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