mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
讨论节点
This commit is contained in:
1 parent
5e51bd2fe0
commit
7d27e56018
20 files changed
+154
-47
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user