mirror of
https://github.com/sern-handler/tools
synced 2026-06-06 01:16:59 +00:00
feat: order of init is determined
This commit is contained in:
@@ -73,7 +73,10 @@ export class Container {
|
||||
const hookFunctions = this.hooks.get(name) || [];
|
||||
for (const hookObject of hookFunctions) {
|
||||
//@ts-ignore .registerHooks verifies the hookObject hasCallableMethod
|
||||
hookObject[name](...args);
|
||||
const result = hookObject[name](...args);
|
||||
if(result instanceof Promise) {
|
||||
await result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user