core: fix plugin hooks to properly handle async operations ensuring plugins can execute async code without errors (#19586)
parent
72cb9dfa31
commit
55895d0663
|
|
@ -292,7 +292,7 @@ export namespace Plugin {
|
|||
for (const hook of state.hooks) {
|
||||
const fn = hook[name] as any
|
||||
if (!fn) continue
|
||||
yield* Effect.promise(() => fn(input, output))
|
||||
yield* Effect.promise(async () => fn(input, output))
|
||||
}
|
||||
return output
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue