Skip to content

Commit

Permalink
Removed cast
Browse files Browse the repository at this point in the history
  • Loading branch information
helios-ag committed Nov 18, 2024
1 parent 5f42fa6 commit 005f125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/routeGeneration/templates/express.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function RegisterRoutes(app: Router) {
validatedArgs = templateService.getValidatedArgs({ args, request, response });

{{#if ../../iocModule}}
const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer as IocContainer;
const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer;

const controller: any = await container.get<{{../name}}>({{../name}});
if (typeof controller['setStatus'] === 'function') {
Expand Down

0 comments on commit 005f125

Please sign in to comment.