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

@ -860,7 +860,7 @@ async function searchActors(query) {
const actors = await knex
.select('*')
.from(knex.raw('search_actors(?) as actors', [query]))
.limit(10);
.limit(100);
return actors.map(actor => curateActor(actor));
}

View File

@ -69,10 +69,10 @@ const { argv } = yargs
default: false,
alias: 'actor-scenes',
})
.option('actors-sources', {
.option('actor-sources', {
describe: 'Use these scrapers for actor data',
type: 'array',
alias: 'source',
alias: ['actor-source', 'profile-sources', 'profile-source', 'source'],
})
.option('movie-scenes', {
describe: 'Fetch all scenes for a movie',

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));
}