From 51c1c17d470dbb1b35161fe58f2603956093553e Mon Sep 17 00:00:00 2001 From: CODE <1650192445@qq.com> Date: Tue, 12 Sep 2023 14:17:36 +0800 Subject: [PATCH] Error: Syntax error debug --- api/app/lib/schedule/alarms_push.js | 5 +---- api/app/lib/service/clickHouseClient.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/api/app/lib/schedule/alarms_push.js b/api/app/lib/schedule/alarms_push.js index 54fb754..b7cb884 100644 --- a/api/app/lib/schedule/alarms_push.js +++ b/api/app/lib/schedule/alarms_push.js @@ -1526,10 +1526,7 @@ module.exports = function (app, opts) { `).toPromise() } - if (proDebug) { - console.log(`相关设备及测点信息:`); - // console.log(deviceSensorRes); - } + let alarmTitle = dataAlarmTitle.concat( videoAlarmTitle.slice(2).map(v => { return { diff --git a/api/app/lib/service/clickHouseClient.js b/api/app/lib/service/clickHouseClient.js index f688681..998033a 100644 --- a/api/app/lib/service/clickHouseClient.js +++ b/api/app/lib/service/clickHouseClient.js @@ -11,7 +11,7 @@ function factory (app, opts) { app.fs.clickHouse[d.name] = new ClickHouse({ url: url, port: port, - debug: opts.dev, + debug: true || opts.dev, format: "json", basicAuth: user && password ? { username: user,