diff --git a/api/app/lib/schedule/alarms_push.js b/api/app/lib/schedule/alarms_push.js index 443ecac..57f8736 100644 --- a/api/app/lib/schedule/alarms_push.js +++ b/api/app/lib/schedule/alarms_push.js @@ -358,11 +358,13 @@ module.exports = function (app, opts) { order: [['createTime', 'DESC']], include: [{ model: models.App, + required: true, include: [{ model: models.ProjectApp, where: { projectId: pomsProjectId }, + required: true, }] }] })