Updated object-merge-advanced API use.

This commit is contained in:
DebaucheryLibrarian 2021-08-15 13:16:48 +02:00
parent 0427e1e276
commit aacfd1b29d
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
'use strict';
const Promise = require('bluebird');
const merge = require('object-merge-advanced');
const { mergeAdvanced: merge } = require('object-merge-advanced');
const argv = require('./argv');
const include = require('./utils/argv-include')(argv);
@ -130,6 +130,8 @@ async function scrapeRelease(baseRelease, entitiesBySlug, type = 'scene') {
}),
}), {});
console.log(merge);
const mergedRelease = {
...merge(baseRelease, curatedScrapedRelease, {
dedupeStringsInArrayValues: true,