Fixed release merge order.

This commit is contained in:
ThePendulum 2020-02-01 03:30:11 +01:00
parent 46cadcb8e5
commit 09ea3125df
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
'use strict'; 'use strict';
// const config = require('config');
const Promise = require('bluebird'); const Promise = require('bluebird');
const UrlPattern = require('url-pattern'); const UrlPattern = require('url-pattern');
const moment = require('moment'); const moment = require('moment');

View File

@ -66,8 +66,8 @@ async function scrapeRelease(source, basicRelease = null, type = 'scene') {
return { return {
url, url,
...scrapedRelease,
...release, ...release,
...scrapedRelease,
...(scrapedRelease && release?.tags && { ...(scrapedRelease && release?.tags && {
tags: release.tags.concat(scrapedRelease.tags), tags: release.tags.concat(scrapedRelease.tags),
}), }),