Browse Source

策略判重

dev
巴林闲侠 2 years ago
parent
commit
41d188aea9
  1. 2
      api/app/lib/controllers/push/config.js

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

Loading…
Cancel
Save