明树Git Lab

Commit 55df2a89 authored by zfp1's avatar zfp1

update

parent f9863c46
Pipeline #106422 passed with stage
in 3 seconds
......@@ -961,7 +961,7 @@ async function updateZdsxsp(req, res, next) {
if (!req.body.projectId) {
return res.sendError(errorMessage.paramsError);
}
let zdsxsp = await DB.TzZdsxsp.findOne({ where: search, raw: true });
let zdsxsp = await DB.TzZdsxsp.findOne({ where: {id: req.body.id}, raw: true });
if (!(zdsxsp && zdsxsp.id)) {
return res.sendError(errorMessage.resourceNotFound);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment