Browse Source

批量确认数据告警

dev
巴林闲侠 2 years ago
parent
commit
f93f95f114
  1. 2
      api/app/lib/controllers/alarm/data.js

2
api/app/lib/controllers/alarm/data.js

@ -241,7 +241,7 @@ function confirm (opts) {
*/ */
const alarmRes = await clickHouse.dataAlarm.query(` const alarmRes = await clickHouse.dataAlarm.query(`
SELECT * FROM alarms WHERE AlarmId IN (${alarmId.split(',').map(a => `'${a}'`).join(',')}) SELECT * FROM alarms WHERE AlarmId IN (${alarmId.map(a => `'${a}'`).join(',')})
`).toPromise(); `).toPromise();
if (!alarmRes.length) { if (!alarmRes.length) {

Loading…
Cancel
Save