Browse Source

项目绑定信息与应用信息绑定

dev
巴林闲侠 2 years ago
parent
commit
66a8ea2eed
  1. 4
      api/app/lib/controllers/project/bind.js

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

@ -9,6 +9,10 @@ async function bindAnxin2pep (ctx) {
const { userId, pepUserId } = ctx.fs.api const { userId, pepUserId } = ctx.fs.api
const { bindId, name, pepProjectId, anxinProjectId = [], appId = [] } = ctx.request.body const { bindId, name, pepProjectId, anxinProjectId = [], appId = [] } = ctx.request.body
if(name && pepProjectId){
throw '项企项目与自定义项目名称仅可选择一项'
}
let bindId_ = bindId let bindId_ = bindId
const now = moment() const now = moment()
const existRes = await models.ProjectCorrelation.findOne({ const existRes = await models.ProjectCorrelation.findOne({

Loading…
Cancel
Save