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",
"version": "1.151.1",
"version": "1.151.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

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

View File

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