From 6e4f134235c8dd9c7fbd1fd023543d1088145254 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 16 Nov 2022 14:26:14 +0800 Subject: [PATCH] format --- api/app/lib/controllers/alarm/video.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/api/app/lib/controllers/alarm/video.js b/api/app/lib/controllers/alarm/video.js index e168d4d..d97a4ab 100644 --- a/api/app/lib/controllers/alarm/video.js +++ b/api/app/lib/controllers/alarm/video.js @@ -8,15 +8,15 @@ async function deviceType (ctx) { const { clickHouse } = ctx.app.fs const kindRes = await clickHouse.vcmp.query(` - SELECT DISTINCT - camera_kind.id AS id,camera_kind.kind AS kind - FROM camera_kind - INNER JOIN camera - ON camera_kind.id = camera.kind_id - INNER JOIN camera_status_alarm - ON camera.channel_no = camera_status_alarm.channel_no - AND camera.serial_no = camera_status_alarm.serial_no - `).toPromise() + SELECT DISTINCT + camera_kind.id AS id,camera_kind.kind AS kind + FROM camera_kind + INNER JOIN camera + ON camera_kind.id = camera.kind_id + INNER JOIN camera_status_alarm + ON camera.channel_no = camera_status_alarm.channel_no + AND camera.serial_no = camera_status_alarm.serial_no + `).toPromise() ctx.status = 200; ctx.body = kindRes } catch (error) {