From 97f8535dcb9046764a21af4314e987e9d2465ee4 Mon Sep 17 00:00:00 2001 From: CODE <1650192445@qq.com> Date: Wed, 13 Sep 2023 14:54:44 +0800 Subject: [PATCH] Device --- api/app/lib/schedule/alarms_push.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/lib/schedule/alarms_push.js b/api/app/lib/schedule/alarms_push.js index a0524a2..553c947 100644 --- a/api/app/lib/schedule/alarms_push.js +++ b/api/app/lib/schedule/alarms_push.js @@ -284,7 +284,7 @@ module.exports = function (app, opts) { let deviceCountRes = strucThingId.length ? await clickHouse.iot.query(` - SELECT count(DeviceId) AS count FROM device WHERE ThingId IN (${strucThingId.map(t => `'${t}'`).join(',')}, '-1') + SELECT count(DeviceId) AS count FROM Device WHERE ThingId IN (${strucThingId.map(t => `'${t}'`).join(',')}, '-1') `).toPromise() : [] deviceCount = deviceCountRes.length ? deviceCountRes[0].count : 0