明树Git Lab

Commit 3070be14 authored by zengfanpei's avatar zengfanpei

update

parent 4410f7d5
......@@ -31,7 +31,7 @@ async function getNotice(req, res, next) {
let userId = req.user._id;
let ret = await DB.Notice.findOne({ _id: req.body._id }).populate({ path: "sendUser receiveUser" }).lean().exec();
await DB.Notice.updateOne({ _id: req.body._id }, { read: true });
return ret;
return res.sendData(ret);
} catch (error) {
next(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