|
@@ -294,7 +294,7 @@ module.exports = app => {
|
|
|
// 添加推送
|
|
|
const noticeContent = await this.getNoticeContent(pid, audit.tid, stageId)
|
|
|
const records = [{ pid, type: pushType.stage, uid: this.ctx.stage.user_id, status: auditConst.status.checkNo, content: noticeContent }]
|
|
|
- ctx.stage.auditors.forEach( audit => {
|
|
|
+ this.ctx.stage.auditors.forEach( audit => {
|
|
|
records.push({ pid, type: pushType.stage, uid: audit.aid, status: auditConst.status.checkNo, content: noticeContent })
|
|
|
})
|
|
|
await transaction.insert('zh_notice', records);
|