Improved query curation in release search function.

This commit is contained in:
DebaucheryLibrarian
2021-02-25 15:58:54 +01:00
parent 342d8da29b
commit b4129891dc
2 changed files with 2 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ async function fetchScenes(limit = 100) {
async function searchScenes(query, limit = 100) {
const releases = await knex
.from(knex.raw('search_releases(?) as releases', [query]))
.from(knex.raw('search_releases(:query) as releases', { query }))
.modify(withRelations, false, true)
.limit(Math.min(limit, 1000000));