Browse Source

feat:fix bugs

dev
zhaobing’ 1 year ago
parent
commit
1d6656e472
  1. 7
      api/app/lib/controllers/project/bind.js

7
api/app/lib/controllers/project/bind.js

@ -19,11 +19,10 @@ async function bindAnxin2pep (ctx) {
name, pepProjectId, anxinProjectId,
updateTime: now, mappingClass,
del: false,
maintenanceEnd:maintenancePeriod&&maintenancePeriod.length?maintenancePeriod[1]:null,
maintenanceStart:maintenancePeriod&&maintenancePeriod.length?maintenancePeriod[0]:null,
}
if(maintenancePeriod&&maintenancePeriod.length){
storageData.maintenanceEnd=maintenancePeriod[1]
storageData.maintenanceStart=maintenancePeriod[0]
}
// 仅限已有 pepProjectId 的项目
const existRes = pepProjectId ? await models.ProjectCorrelation.findOne({
where: Object.assign(

Loading…
Cancel
Save