明树Git Lab

Commit 4d19ed0c authored by zfp1's avatar zfp1

update

parent b22f7044
......@@ -24,7 +24,7 @@ async function updateCompInfo(req, res, next) {
newAdr.push(element);
}
body.addressInfo = newAdr;
let ret = await DB.CompanyInfo.findOneAndUpdate({_id: body._id},{body});
let ret = await DB.CompanyInfo.findOneAndUpdate({_id: body._id},body);
return res.sendData(ret);
} 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