Skip to content

Commit

Permalink
rename usecase
Browse files Browse the repository at this point in the history
  • Loading branch information
celineung authored and clement-duport committed Sep 4, 2024
1 parent c02089d commit 90d3ebf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions back/src/adapters/primary/routers/admin/createAdminRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const createAdminRouter = (deps: AppDependencies): Router => {
deps.inclusionConnectAuthMiddleware,
(req, res) =>
sendHttpResponse(req, res.status(201), () =>
deps.useCases.updateIcUserRoleForAgency.execute(
deps.useCases.updateUserForAgency.execute(
req.body,
req.payloads?.currentUser,
),
Expand All @@ -86,7 +86,7 @@ export const createAdminRouter = (deps: AppDependencies): Router => {
deps.inclusionConnectAuthMiddleware,
(req, res) =>
sendHttpResponse(req, res.status(201), () =>
deps.useCases.updateIcUserRoleForAgency.execute(
deps.useCases.updateUserForAgency.execute(
req.body,
req.payloads?.currentUser,
),
Expand Down
2 changes: 1 addition & 1 deletion back/src/config/bootstrap/createUseCases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const createUseCases = (
),
registerAgencyToInclusionConnectUser:
new RegisterAgencyToInclusionConnectUser(uowPerformer, createNewEvent),
updateIcUserRoleForAgency: new UpdateUserForAgency(
updateUserForAgency: new UpdateUserForAgency(
uowPerformer,
createNewEvent,
),
Expand Down

0 comments on commit 90d3ebf

Please sign in to comment.