Skip to content

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdean-digicatapult committed Dec 12, 2024
1 parent b4ca422 commit fcb340d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/controllers/connection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class ConnectionController extends HTMLController {
* render pin code submission form
* @param companyNumber - for retrieving a connection from a db
* @param pin - a pin code
* @returns
* @returns HTML Html of the updated render pin form
*/
@SuccessResponse(200)
@Get('/{connectionId}/pin-submission')
Expand All @@ -75,7 +75,7 @@ export class ConnectionController extends HTMLController {
/**
* handles PIN code submission form submit action
* @param body - contains forms inputs
* @returns
* @returns HTML Html of the pin submission form or an error
*/
@SuccessResponse(200)
@Post('/{connectionId}/pin-submission')
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class SettingsController extends HTMLController {
/**
* handles PIN code submission form submit action
* @param body - contains forms inputs
* @returns
* @returns HTML Html of the update settings form,
*/
@SuccessResponse(200)
@Post('/:edit?')
Expand Down
4 changes: 2 additions & 2 deletions src/ioc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { ILogger, Logger } from './logger.js'
import Database from './models/db/index.js'

export const iocContainer: IocContainer = {
get: <T>(controller: { prototype: T }): T => {
return container.resolve<T>(controller as never)
get: (controller) => {
return container.resolve(controller as never)
},
}

Expand Down

0 comments on commit fcb340d

Please sign in to comment.