Compare commits

..

No commits in common. "91746c73e16cfdd2ffbf8c1eb015c6f733614777" and "4fd262dc6001f4a2a3d9c7deb91cea10f63cca96" have entirely different histories.

3 changed files with 3 additions and 7 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.151.1", "version": "1.151.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.151.1", "version": "1.151.0",
"description": "All the latest porn releases in one place", "description": "All the latest porn releases in one place",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {

View File

@ -960,11 +960,7 @@ async function flushProfiles(actorIdsOrNames) {
async function flushActors(actorIdsOrNames) { async function flushActors(actorIdsOrNames) {
const actors = await knex('actors') const actors = await knex('actors')
.whereIn('id', actorIdsOrNames.filter(idOrName => typeof idOrName === 'number')) .whereIn('id', actorIdsOrNames.filter(idOrName => typeof idOrName === 'number'))
.orWhere((builder) => { .orWhereIn('name', actorIdsOrNames.filter(idOrName => typeof idOrName === 'string'));
builder
.whereIn('name', actorIdsOrNames.filter(idOrName => typeof idOrName === 'string'))
.whereNull('entity_id');
});
const actorIds = actors.map(actor => actor.id); const actorIds = actors.map(actor => actor.id);