core: fix bigint serializer

This commit is contained in:
undefined committed 2021-04-22 22:56:54 +08:00
1 parent f42393f7af
commit b6a6f46d20
5 files changed
+16 -25

No files matched your search

+1 -5
View File
@@ -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;
}