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}]的同名策略` }