Increased hard limit in release API.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user