From de93f831ad379aaaa9800bdd896c72c13f99759b Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Sun, 9 Oct 2022 14:57:35 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=BA=94=E7=94=A8=E5=91=8A=E8=AD=A6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/alarm/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/lib/controllers/alarm/app.js b/api/app/lib/controllers/alarm/app.js index 89fd936..354e8d6 100644 --- a/api/app/lib/controllers/alarm/app.js +++ b/api/app/lib/controllers/alarm/app.js @@ -133,7 +133,7 @@ async function notedInspection (ctx) { async function apiError (ctx) { try { const models = ctx.fs.dc.models; - const { projectAppId, alarmContent, router, statusCode, screenshot = '', type } = ctx.request.body + const { projectAppId, alarmContent, router, statusCode = null, screenshot = '', type } = ctx.request.body const now = moment().format() if (!type) {