forked from DebaucheryLibrarian/traxxx
Increased hard limit in release API.
This commit is contained in:
parent
0b86def315
commit
1b407254a7
|
@ -860,7 +860,7 @@ async function searchActors(query) {
|
||||||
const actors = await knex
|
const actors = await knex
|
||||||
.select('*')
|
.select('*')
|
||||||
.from(knex.raw('search_actors(?) as actors', [query]))
|
.from(knex.raw('search_actors(?) as actors', [query]))
|
||||||
.limit(10);
|
.limit(100);
|
||||||
|
|
||||||
return actors.map(actor => curateActor(actor));
|
return actors.map(actor => curateActor(actor));
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,10 +69,10 @@ const { argv } = yargs
|
||||||
default: false,
|
default: false,
|
||||||
alias: 'actor-scenes',
|
alias: 'actor-scenes',
|
||||||
})
|
})
|
||||||
.option('actors-sources', {
|
.option('actor-sources', {
|
||||||
describe: 'Use these scrapers for actor data',
|
describe: 'Use these scrapers for actor data',
|
||||||
type: 'array',
|
type: 'array',
|
||||||
alias: 'source',
|
alias: ['actor-source', 'profile-sources', 'profile-source', 'source'],
|
||||||
})
|
})
|
||||||
.option('movie-scenes', {
|
.option('movie-scenes', {
|
||||||
describe: 'Fetch all scenes for a movie',
|
describe: 'Fetch all scenes for a movie',
|
||||||
|
|
|
@ -111,7 +111,7 @@ async function fetchRelease(releaseId) {
|
||||||
async function fetchReleases(limit = 100) {
|
async function fetchReleases(limit = 100) {
|
||||||
const releases = await knex('releases')
|
const releases = await knex('releases')
|
||||||
.modify(withRelations, false)
|
.modify(withRelations, false)
|
||||||
.limit(Math.min(limit, 1000));
|
.limit(Math.min(limit, 1000000));
|
||||||
|
|
||||||
return releases.map(release => curateRelease(release));
|
return releases.map(release => curateRelease(release));
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ async function searchReleases(query, limit = 100) {
|
||||||
const releases = await knex
|
const releases = await knex
|
||||||
.from(knex.raw('search_releases(?) as releases', [query]))
|
.from(knex.raw('search_releases(?) as releases', [query]))
|
||||||
.modify(withRelations, false)
|
.modify(withRelations, false)
|
||||||
.limit(Math.min(limit, 1000));
|
.limit(Math.min(limit, 1000000));
|
||||||
|
|
||||||
return releases.map(release => curateRelease(release));
|
return releases.map(release => curateRelease(release));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue