From 2bd317e5187dfae9b15826fcfb47b034099b5a88 Mon Sep 17 00:00:00 2001 From: Mikhail Chechnev Date: Tue, 5 Mar 2019 17:06:35 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=BD=D1=82=D0=B5=D0=BA=D1=81?= =?UTF-8?q?=D1=82=D0=B0=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=BD?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE=20=D0=BF=D1=80=D0=B5=D0=B4=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D1=87=D0=B8=D0=BA=D0=BE=D0=BC=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=D0=B0=D1=87=D0=B8?= =?UTF-8?q?=20=D0=B2=20=D0=BF=D0=BE=D1=81=D1=82=D0=BE=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D1=87=D0=B8=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/out_queue_processor.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/out_queue_processor.js b/core/out_queue_processor.js index af720a9..9c694b6 100644 --- a/core/out_queue_processor.js +++ b/core/out_queue_processor.js @@ -188,10 +188,12 @@ const appProcess = async prms => { //Применим ответ "До" - контекст работы сервиса if (!_.isUndefined(resBefore.sCtx)) if (prms.function.nFnType == objServiceFnSchema.NFN_TYPE_LOGIN) { + prms.service.sCtx = resBefore.sCtx; + prms.service.dCtxExp = resBefore.dCtxExp; await dbConn.setServiceContext({ nServiceId: prms.service.nId, - sCtx: resBefore.sCtx, - dCtxExp: resBefore.dCtxExp + sCtx: prms.service.sCtx, + dCtxExp: prms.service.dCtxExp }); bCtxIsSet = true; } @@ -260,10 +262,12 @@ const appProcess = async prms => { //Применим ответ "После" - контекст работы сервиса if (!_.isUndefined(resAfter.sCtx)) if (prms.function.nFnType == objServiceFnSchema.NFN_TYPE_LOGIN) { + prms.service.sCtx = resAfter.sCtx; + prms.service.dCtxExp = resAfter.dCtxExp; await dbConn.setServiceContext({ nServiceId: prms.service.nId, - sCtx: resAfter.sCtx, - dCtxExp: resAfter.dCtxExp + sCtx: prms.service.sCtx, + dCtxExp: prms.service.dCtxExp }); bCtxIsSet = true; }