From 4a5866ff45297ef5d4bd89ad9edd20d8c4016291 Mon Sep 17 00:00:00 2001 From: nikitam Date: Tue, 9 Oct 2018 16:38:23 +0530 Subject: [PATCH] added-creator-id --- client/src/config/index.js | 8 ++++---- service/src/services/dflowzdata/dflowzdata.hooks.js | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/src/config/index.js b/client/src/config/index.js index 1e48215..b67ddcd 100644 --- a/client/src/config/index.js +++ b/client/src/config/index.js @@ -1,10 +1,10 @@ var temp = { - // serverURI: 'http://localhost:3030', - // socketURI: 'http://localhost:4033', + serverURI: 'http://localhost:3030', + socketURI: 'http://localhost:4033', // serverURI: 'http://172.16.230.130:3030', // socketURI: 'http://172.16.230.130:4033', - serverURI: 'https://api.' + process.env.domainKey + '/eng', - socketURI: 'wss://ws.' + process.env.domainKey + ':4033', + // serverURI: 'https://api.' + process.env.domainKey + '/eng', + // socketURI: 'wss://ws.' + process.env.domainKey + ':4033', workerRegisterURL: 'http://localhost:4001', approvalRoleURI: 'https://api.' + process.env.domainKey + '/authldap/', fixedLayout: false, diff --git a/service/src/services/dflowzdata/dflowzdata.hooks.js b/service/src/services/dflowzdata/dflowzdata.hooks.js index 4a5e6d8..bacab3c 100644 --- a/service/src/services/dflowzdata/dflowzdata.hooks.js +++ b/service/src/services/dflowzdata/dflowzdata.hooks.js @@ -112,6 +112,7 @@ function beforeCreate (hook) { hook.data._previous = null hook.data._uuid = uuidv4() hook.data._next = null + hook.data._creatorid = (hook.params.userPackageDetails ? hook.params.userPackageDetails._id : '') } if (res.processList[hook.data._state].type === 'exclusivegateway') { // console.log('???????????????????????????????????????????????????')