明树Git Lab

Commit 4ea78768 authored by zfp1's avatar zfp1

update

parent 885ef9af
Pipeline #105984 passed with stage
in 3 seconds
......@@ -121,7 +121,7 @@ async function getResource(req, res, next) {
return res.sendError(errorMessage.resourceNotFound)
}
let ress = await DB.Resources.findOne({ where: { id: req.body.id } });
let ress = await DB.Resources.findOne({ where: { id: req.body.id } , raw: true});
if (!(ress && ress.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