diff --git a/ts/typedrequest.classes.typedrouter.ts b/ts/typedrequest.classes.typedrouter.ts index a8b802a..022a18a 100644 --- a/ts/typedrequest.classes.typedrouter.ts +++ b/ts/typedrequest.classes.typedrouter.ts @@ -27,7 +27,7 @@ export class TypedRouter { if (!typedHandler) { const availableMethods: string[] = []; - this.handlerMap.forEach(async (handler) => { + await this.handlerMap.forEach(async (handler) => { availableMethods.push(handler.method); }); console.log(`Cannot find method for ${typedHandler}`);