Fixed release merge order.
This commit is contained in:
parent
46cadcb8e5
commit
09ea3125df
|
@ -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');
|
||||||
|
|
|
@ -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),
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue