|
@ -16,13 +16,14 @@ module.exports = function (app, opts) { |
|
|
const curMinOfYear = moment().diff(moment().startOf('year'), 'minutes') |
|
|
const curMinOfYear = moment().diff(moment().startOf('year'), 'minutes') |
|
|
const configListRes = await models.AlarmPushConfig.findAll({ |
|
|
const configListRes = await models.AlarmPushConfig.findAll({ |
|
|
where: { |
|
|
where: { |
|
|
del: false |
|
|
del: false, |
|
|
|
|
|
disable: false |
|
|
}, |
|
|
}, |
|
|
order: ['id'], |
|
|
order: ['id'], |
|
|
include: [{ |
|
|
include: [{ |
|
|
model: models.ProjectCorrelation, |
|
|
model: models.ProjectCorrelation, |
|
|
where: { |
|
|
where: { |
|
|
del: false |
|
|
del: false, |
|
|
}, |
|
|
}, |
|
|
required: true |
|
|
required: true |
|
|
}], |
|
|
}], |
|
|