Added upcoming, profile and detailed scene actor scraping to InTheCrack. Fixed clip upsert.

This commit is contained in:
DebaucheryLibrarian
2020-08-20 23:35:18 +02:00
parent 552e6da392
commit 4ec89e2cc8
16 changed files with 188 additions and 35 deletions

View File

@@ -263,7 +263,7 @@ async function storeClips(releases) {
clip: clip.clip,
}));
const storedClips = await bulkInsert('clips', curatedClipEntries);
const storedClips = await bulkInsert('clips', curatedClipEntries, ['release_id', 'clip']);
const clipIdsByReleaseIdAndClip = storedClips.reduce((acc, clip) => ({
...acc,
[clip.release_id]: {