forked from DebaucheryLibrarian/traxxx
Ignoring undefined video entropy.
This commit is contained in:
@@ -391,7 +391,7 @@ async function updateReleasesSearch(releaseIds) {
|
||||
GROUP BY releases.id, sites.name, sites.slug;
|
||||
`, [releaseIds]);
|
||||
|
||||
if (documents.row.length > 0) {
|
||||
if (documents.row?.length > 0) {
|
||||
const query = knex('releases_search').insert(documents.rows).toString();
|
||||
await knex.raw(`${query} ON CONFLICT (release_id) DO UPDATE SET document = EXCLUDED.document`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user