明树Git Lab

Commit edc23b60 authored by zfp1's avatar zfp1

1

parent 06ca5f97
Pipeline #106417 passed with stage
in 3 seconds
...@@ -792,7 +792,7 @@ async function updateJsqtzjc(req, res, next) { ...@@ -792,7 +792,7 @@ async function updateJsqtzjc(req, res, next) {
if (!req.body.projectId) { if (!req.body.projectId) {
return res.sendError(errorMessage.paramsError); return res.sendError(errorMessage.paramsError);
} }
let jsqtzjc = await DB.TzJsqtzjc.findOne({ where: search, raw: true }); let jsqtzjc = await DB.TzJsqtzjc.findOne({ where: {id: req.body.id}, raw: true });
if (!(jsqtzjc && jsqtzjc.id && jsqtzjc.projectId)) { if (!(jsqtzjc && jsqtzjc.id && jsqtzjc.projectId)) {
return res.sendError(errorMessage.resourceNotFound); 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