mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: fix types
This commit is contained in:
1 parent
d27a1499d2
commit
1c3dc161b6
13 files changed
+48
-62
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user