|
|
@ -59,6 +59,7 @@ async function bindAnxin2pep (ctx) { |
|
|
|
|
|
|
|
let storageData = { |
|
|
|
name, pepProjectId, anxinProjectId, |
|
|
|
updateTime: now, |
|
|
|
del: false, |
|
|
|
} |
|
|
|
|
|
|
@ -129,7 +130,7 @@ async function bindAnxin2pep (ctx) { |
|
|
|
async function del (ctx) { |
|
|
|
try { |
|
|
|
const models = ctx.fs.dc.models; |
|
|
|
const { bindId } = ctx.query |
|
|
|
const { bindId } = ctx.params |
|
|
|
|
|
|
|
await models.ProjectCorrelation.update({ |
|
|
|
del: true |
|
|
@ -139,7 +140,7 @@ async function del (ctx) { |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
ctx.status = 20; |
|
|
|
ctx.status = 204; |
|
|
|
} catch (error) { |
|
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: error`); |
|
|
|
ctx.status = 400; |
|
|
|