Skip to content

Commit

Permalink
Merge c8d0786 into 9ba38e9
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 21, 2019
2 parents 9ba38e9 + c8d0786 commit d03f70a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/plugins/console/deploy.js
@@ -1,7 +1,5 @@
'use strict';

const assignIn = require('lodash/assignIn');
const clone = require('lodash/clone');
const fs = require('hexo-fs');
const chalk = require('chalk');
const Promise = require('bluebird');
Expand All @@ -23,7 +21,7 @@ function deployConsole(args) {
}

return new Promise((resolve, reject) => {
const generateArgs = clone(args);
const generateArgs = {...args};
generateArgs.d = false;
generateArgs.deploy = false;

Expand Down Expand Up @@ -52,7 +50,7 @@ function deployConsole(args) {

this.log.info('Deploying: %s', chalk.magenta(type));

return Reflect.apply(deployers[type], this, [assignIn({}, item, args)]).then(() => {
return Reflect.apply(deployers[type], this, [Object.assign({}, item, args)]).then(() => {
this.log.info('Deploy done: %s', chalk.magenta(type));
});
}).then(() => {
Expand Down

0 comments on commit d03f70a

Please sign in to comment.