core: fix types

This commit is contained in:
undefined committed 2022-10-04 01:38:51 +08:00
1 parent d27a1499d2
commit 1c3dc161b6
13 files changed
+48 -62

No files matched your search

+1 -1
View File
@@ -187,7 +187,7 @@ export async function apply(ctx: Context) {
const handleEvent = async (doc: EventDoc) => {
const payload = JSON.parse(doc.payload);
if (process.send) process.send({ type: 'hydro:broadcast', data: { event: doc.event, payload } });
await bus.parallel(doc.event, ...payload);
await (bus.parallel as any)(doc.event, ...payload);
};
stream.on('change', async (change) => {
if (change.operationType !== 'insert') return;