|
@ -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: { |
|
|