diff --git a/api/app/lib/controllers/project/bind.js b/api/app/lib/controllers/project/bind.js index aad724c..a3f71fe 100644 --- a/api/app/lib/controllers/project/bind.js +++ b/api/app/lib/controllers/project/bind.js @@ -14,15 +14,15 @@ async function bindAnxin2pep (ctx) { let bindId_ = bindId const now = moment() - + let storageData = { name, pepProjectId, anxinProjectId, updateTime: now, mappingClass, del: false, - maintenanceEnd:maintenancePeriod&&maintenancePeriod.length?maintenancePeriod[1]:NULL, - maintenanceStart:maintenancePeriod&&maintenancePeriod.length?maintenancePeriod[0]:NULL + maintenanceEnd:maintenancePeriod&&maintenancePeriod.length?maintenancePeriod[1]:null, + maintenanceStart:maintenancePeriod&&maintenancePeriod.length?maintenancePeriod[0]:null, } - + // 仅限已有 pepProjectId 的项目 const existRes = pepProjectId ? await models.ProjectCorrelation.findOne({ where: Object.assign(