Browse Source

fix c.alarmSubType['app_exception']

dev
CODE 1 year ago
parent
commit
4f57bdbf3f
  1. 4
      api/app/lib/schedule/alarms_push.js

4
api/app/lib/schedule/alarms_push.js

@ -486,7 +486,9 @@ module.exports = function (app, opts) {
if (c.alarmSubType) {
appAlarmWhereOption.type = { $in: c.alarmSubType['app_exception'] || [] }
}
appAlarms = c.alarmSubType && c.alarmSubType['app_exception'].length ?
appAlarms = c.alarmSubType &&
c.alarmSubType['app_exception'] &&
c.alarmSubType['app_exception'].length ?
await models.AppAlarm.findAll({
where: appAlarmWhereOption,
order: [['createTime', 'DESC']],

Loading…
Cancel
Save