明树Git Lab

Commit edc3e6d2 authored by zfp1's avatar zfp1

update

parent dd09080d
Pipeline #107750 passed with stage
in 3 seconds
......@@ -96,10 +96,12 @@ async function getUserMessages(req, res, next) {
// raw: true,
order: [['createdAt', 'DESC']],
});
console.log(ret);
let messages = ret.rows || [];
let newRet = [];
for (let index = 0; index < messages.length; index++) {
const element = messages[index];
console.log("0000000000000000")
const element = messages[index].toJSON();
element.alreadyRead = element.alreadyRead || [];
element.isRead = false;
if (element.alreadyRead.includes(req.user.id)) {
......
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