Преглед изворни кода

fix: 修复计量审批重审原报重复推送的问题

lanjianrong пре 4 година
родитељ
комит
defed754ad
1 измењених фајлова са 1 додато и 9 уклоњено
  1. 1 9
      app/service/stage_audit.js

+ 1 - 9
app/service/stage_audit.js

@@ -311,15 +311,7 @@ module.exports = app => {
                 // 添加推送
                 const noticeContent = await this.getNoticeContent(pid, audit.tid, stageId, audit.aid)
                 const auditors = await this.getAuditGroupByListWithOwner(stageId, times)
-                const records = [
-                    {
-                        pid,
-                        type: pushType.stage,
-                        uid: this.ctx.stage.user_id,
-                        status: auditConst.status.checked,
-                        content: noticeContent
-                    }
-                ]
+                const records = []
                 auditors.forEach(audit => {
                     records.push({
                         pid,