Increased hard limit in release API.

This commit is contained in:
DebaucheryLibrarian
2020-11-26 04:01:01 +01:00
parent 0b86def315
commit 1b407254a7
3 changed files with 5 additions and 5 deletions

View File

@@ -111,7 +111,7 @@ async function fetchRelease(releaseId) {
async function fetchReleases(limit = 100) {
const releases = await knex('releases')
.modify(withRelations, false)
.limit(Math.min(limit, 1000));
.limit(Math.min(limit, 1000000));
return releases.map(release => curateRelease(release));
}
@@ -120,7 +120,7 @@ async function searchReleases(query, limit = 100) {
const releases = await knex
.from(knex.raw('search_releases(?) as releases', [query]))
.modify(withRelations, false)
.limit(Math.min(limit, 1000));
.limit(Math.min(limit, 1000000));
return releases.map(release => curateRelease(release));
}