From 735dcf2700ea2cbb7ffed442edd3cc668783731d Mon Sep 17 00:00:00 2001 From: SKP Date: Mon, 3 Jun 2019 16:36:34 +0200 Subject: [PATCH] config data overrides session data --- cyphernodeconf_docker/lib/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyphernodeconf_docker/lib/app.js b/cyphernodeconf_docker/lib/app.js index 68ca394..16461e7 100644 --- a/cyphernodeconf_docker/lib/app.js +++ b/cyphernodeconf_docker/lib/app.js @@ -352,7 +352,7 @@ module.exports = class App { if( !fs.existsSync(targetDir) ) { fs.mkdirSync(targetDir, { recursive: true }); } - const result = await ejsRenderFileAsync( this.templatePath(p), Object.assign({},this.config.data,this.sessionData), {} ); + const result = await ejsRenderFileAsync( this.templatePath(p), Object.assign({}, this.sessionData, this.config.data), {} ); console.log( chalk.green( ' create' )+' '+p ); fs.writeFileSync( destFile, result );