From 41d188aea9a23d5c6a5ceb549b6b8a0098dd2bee Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Thu, 3 Nov 2022 15:15:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=96=E7=95=A5=E5=88=A4=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/push/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/lib/controllers/push/config.js b/api/app/lib/controllers/push/config.js index 2b50ee4..8e64b37 100644 --- a/api/app/lib/controllers/push/config.js +++ b/api/app/lib/controllers/push/config.js @@ -181,7 +181,7 @@ async function edit (ctx) { if (pushId) { repeatOption.where.id = { $ne: pushId } } - let repeatRes = await models.findOne(repeatOption) + let repeatRes = await models.AlarmPushConfig.findOne(repeatOption) if (repeatRes) { throw `已有名称为[${name}]的同名策略` }