mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix bigint serializer
This commit is contained in:
1 parent
f42393f7af
commit
b6a6f46d20
5 files changed
+16
-25
No files matched your search
@@ -22,11 +22,7 @@ class MessageModel {
|
||||
const mdoc = {
|
||||
from, to, content, _id: res.insertedId, flag,
|
||||
};
|
||||
if (from !== to) {
|
||||
// ENHANCE domainId?
|
||||
const udoc = await user.getById('system', to);
|
||||
bus.boardcast('user/message', to, mdoc, udoc);
|
||||
}
|
||||
if (from !== to) bus.boardcast('user/message', to, mdoc);
|
||||
await user.inc(to, 'unreadMsg', 1);
|
||||
return mdoc;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user