明树Git Lab

Commit df316ea8 authored by zfp1's avatar zfp1

1

parent c953f7c5
Pipeline #111939 passed with stage
in 3 seconds
......@@ -1622,13 +1622,13 @@ async function updateSnap(req, res, next) {
try {
let {lixiang, juece, zaijuece} = req.body;
if(lixiang && lixiang.id) {
await ProjectLixiang.update({lixiang}, {where: {projectId: lixiang.id}});
await DB.ProjectLixiang.update({lixiang}, {where: {projectId: lixiang.id}});
}
if(juece && juece.id) {
await ProjectLixiang.update({juece}, {where: {projectId: juece.id}});
await DB.ProjectLixiang.update({juece}, {where: {projectId: juece.id}});
}
if(zaijuece && zaijuece.id) {
await ProjectLixiang.update({zaijuece}, {where: {projectId: zaijuece.id}});
await DB.ProjectLixiang.update({zaijuece}, {where: {projectId: zaijuece.id}});
}
return res.sendData({})
} catch (error) {
......
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