Skip to content

Commit 0a539d8

Browse files
committed
Attempt to fix issue
1 parent c50fc6d commit 0a539d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/routeGeneration/templates/express.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function RegisterRoutes(app: Router) {
114114
validatedArgs = templateService.getValidatedArgs({ args, request, response });
115115

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

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

0 commit comments

Comments
 (0)