Browse Source

映射关系添加一个曾被删除的项目,关联时间和添加人更新

dev
wenlele 2 years ago
parent
commit
80dc0880ba
  1. 3
      api/app/lib/controllers/project/bind.js

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

@ -105,6 +105,9 @@ async function bindAnxin2pep (ctx) {
// 但是有之前的数据
if (existRes.del) {
// 不过之前的删除了
storageData.createUser = userId
storageData.updateTime = now.format()
storageData.createTime = now.format()
await models.ProjectCorrelation.update(storageData, {
where: {
pepProjectId: pepProjectId

Loading…
Cancel
Save