From cb95f45913abe6660ad78534d28c53f3c697c6f7 Mon Sep 17 00:00:00 2001 From: Mikhail Chechnev Date: Sat, 29 Dec 2018 19:02:42 +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=D1=82=D0=B5=D0=BB=D0=B0=20=D1=81=D0=BE?= =?UTF-8?q?=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=BE=D1=81?= =?UTF-8?q?=D0=BB=D0=B5=20=D0=BF=D1=80=D0=B5=D0=B4=D0=BE=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D0=BA=D0=B8=20=D1=81=D0=B5=D1=80=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D0=BE=D0=BC=20=D0=BF=D1=80=D0=B8=D0=BB=D0=BE=D0=B6=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/out_queue_processor.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/core/out_queue_processor.js b/core/out_queue_processor.js index 9f9e377..99943e7 100644 --- a/core/out_queue_processor.js +++ b/core/out_queue_processor.js @@ -140,7 +140,13 @@ const appProcess = async prms => { if (!sCheckResult) { //Применим её if (!_.isUndefined(resBefore.options)) options = _.cloneDeep(resBefore.options); - if (!_.isUndefined(resBefore.blMsg)) prms.queue.blMsg = resBefore.blMsg; + if (!_.isUndefined(resBefore.blMsg)) { + prms.queue.blMsg = resBefore.blMsg; + await dbConn.setQueueMsg({ + nQueueId: prms.queue.nId, + blMsg: prms.queue.blMsg + }); + } if (!_.isUndefined(resBefore.context)) prms.service.context = _.cloneDeep(resBefore.context); } else { //Или расскажем об ошибке @@ -149,8 +155,7 @@ const appProcess = async prms => { } } //Отправляем сообщение удалённому серверу - //let serverResp = await rqp(options); - serverResp = { state: "OK" }; + let serverResp = await rqp(options); _.extend(prms, { serverResp }); //Выполняем обработчик "После" (если он есть) if (prms.function.sAppSrvAfter) {