|
|
@@ -394,8 +394,8 @@ module.exports = app => {
|
|
|
audit_type: auditType.key.common, audit_order: order,
|
|
|
};
|
|
|
await transaction.insert(this.tableName, newAuditor);
|
|
|
- const auditList = await this.ctx.service.tenderPermission.getPartsPermission(this.ctx.tender.id, ['safe_inspection']);
|
|
|
- const addAid = this._.includes(this._.map(auditList, 'uid'), lastId);
|
|
|
+ const tenderPermissionList = await this.ctx.service.tenderPermission.getPartsPermission(this.ctx.tender.id, ['safe_inspection']);
|
|
|
+ const addAid = this._.includes(this._.map(tenderPermissionList, 'uid'), lastId);
|
|
|
if (!addAid) {
|
|
|
const insert_members = [{
|
|
|
uid: lastId,
|