Compare commits

..

No commits in common. "0c98df232ed6faf9a5ad51b54755d28d5288c2b6" and "ed7bffd2d66694728fd97759716e36f39a1f5253" have entirely different histories.

3 changed files with 5 additions and 11 deletions

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{
"name": "traxxx",
"version": "1.180.9",
"version": "1.180.8",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "1.180.9",
"version": "1.180.8",
"license": "ISC",
"dependencies": {
"@graphile-contrib/pg-order-by-related": "^1.0.0-beta.6",

View File

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

View File

@ -944,15 +944,9 @@ async function associateActors(releases, batchId) {
})))
.flat();
const validReleaseActorAssociations = releaseActorAssociations.filter(association => association.release_id && association.actor_id);
logger.debug(releaseActorAssociations);
if (releaseActorAssociations.length > validReleaseActorAssociations.length) {
const invalidReleaseActorAssociations = releaseActorAssociations.filter(association => !association.release_id || !association.actor_id);
logger.error(invalidReleaseActorAssociations);
}
await bulkInsert('releases_actors', validReleaseActorAssociations, false);
await bulkInsert('releases_actors', releaseActorAssociations, false);
logger.verbose(`Associated ${releaseActorAssociations.length} actors to ${releases.length} scenes`);