Returning duplicate releases from pagination.

This commit is contained in:
DebaucheryLibrarian
2020-08-22 04:22:56 +02:00
parent 5f5c48ea05
commit 3a5ea3dd9a
5 changed files with 46 additions and 37 deletions

View File

@@ -86,7 +86,7 @@ async function fetchIncludedEntities() {
)
/* select recursive channels as children of networks */
SELECT
entities.*, json_agg(channels) as children
entities.*, json_agg(channels ORDER BY channels.id) as children
FROM
channels
LEFT JOIN