Browse Source

fix 更新视频告警

dev_trial
巴林闲侠 3 years ago
parent
commit
7cae018b1e
  1. 2
      code/VideoAccess-VCMP/api/app/lib/controllers/status/alarm.js

2
code/VideoAccess-VCMP/api/app/lib/controllers/status/alarm.js

@ -50,10 +50,10 @@ async function record (ctx) {
) { ) {
let updateD = { let updateD = {
updateTime: moment().format('YYYY-MM-DD HH:mm:ss'), updateTime: moment().format('YYYY-MM-DD HH:mm:ss'),
confirmTime: moment().format('YYYY-MM-DD HH:mm:ss'),
} }
if (isRestore) { if (isRestore) {
updateD.autoRestore = true updateD.autoRestore = true
updateD.confirmTime = moment().format('YYYY-MM-DD HH:mm:ss')
} }
await models.CameraStatusAlarm.update(updateD, { await models.CameraStatusAlarm.update(updateD, {
where: { where: {

Loading…
Cancel
Save