讨论节点

This commit is contained in:
masnn committed 2020-05-26 13:07:17 +08:00
1 parent 5e51bd2fe0
commit 7d27e56018
20 files changed
+154 -47

No files matched your search

+2 -2
View File
@@ -21,8 +21,8 @@ async function send(from, to, content) {
$setOnInsert: {
from: Math.min(from, to),
to: Math.max(from, to),
fromUnread: false,
toUnread: true,
fromUnread: from > to,
toUnread: from < to,
},
}, { upsert: true });
return await coll.findOne({ // eslint-disable-line no-return-await