From 31c763703893b54ebd48e282e6f7b358608e437c Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Tue, 11 Oct 2022 11:44:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=83=E7=B4=A0=E5=BC=82=E5=B8=B8=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/alarm/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app/lib/controllers/alarm/app.js b/api/app/lib/controllers/alarm/app.js index e35d329..b15521b 100644 --- a/api/app/lib/controllers/alarm/app.js +++ b/api/app/lib/controllers/alarm/app.js @@ -144,7 +144,7 @@ async function notedInspection (ctx) { async function apiError (ctx) { try { const models = ctx.fs.dc.models; - const { projectAppId, alarmContent, router, statusCode = null, screenshot = '', type } = ctx.request.body + const { projectAppId, alarmContent, router, statusCode, screenshot = '', type } = ctx.request.body const now = moment().format() if (!type) { @@ -155,7 +155,7 @@ async function apiError (ctx) { if (isRestore) { const existRes = await models.AppAlarm.findAll({ where: { - projectAppId, router, + projectAppId, router, alarmContent, confirmTime: null, type } })