Compare commits

..

No commits in common. "7e2840a00d9ae472f4c30416edc5cbc60dfc6d4f" and "042d3be4a96dae4e7a930654c6b816c1df7d1cb9" have entirely different histories.

3 changed files with 12 additions and 14 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.226.9", "version": "1.226.8",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "traxxx", "name": "traxxx",
"version": "1.226.9", "version": "1.226.8",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@casl/ability": "^5.2.2", "@casl/ability": "^5.2.2",

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.226.9", "version": "1.226.8",
"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

@ -564,22 +564,20 @@ async function addRelease(release, context) {
entityName: entity.name, entityName: entity.name,
}; };
await addReleaseMedia([releaseWithId.poster], releaseWithId, 'posters', context); await Promise.all([
addReleaseMedia([releaseWithId.poster], releaseWithId, 'posters', context),
if (release.type === 'release') { ...(release.type === 'release' ? [
await Promise.all([
addReleaseTags(releaseWithId, context), addReleaseTags(releaseWithId, context),
addReleaseActors(releaseWithId, context), addReleaseActors(releaseWithId, context),
addReleaseDirectors(releaseWithId, context), addReleaseDirectors(releaseWithId, context),
addReleaseChapters(releaseWithId, context), addReleaseChapters(releaseWithId, context),
linkMovieScenes(releaseWithId, context),
addReleaseMedia(releaseWithId.photos, releaseWithId, 'photos', context), addReleaseMedia(releaseWithId.photos, releaseWithId, 'photos', context),
]); linkMovieScenes(releaseWithId, context),
} ] : []),
...(release.type === 'movie' ? [
if (release.type === 'movie') { addReleaseMedia(releaseWithId.covers, releaseWithId, 'covers', context),
await addReleaseMedia(releaseWithId.covers, releaseWithId, 'covers', context); ] : []),
} ]);
return releaseWithId; return releaseWithId;
} }