Skip to content

Commit

Permalink
fix(privatisation): should be write handler
Browse files Browse the repository at this point in the history
  • Loading branch information
kishore03109 committed Dec 6, 2023
1 parent 1617668 commit b96e0bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/v2/authenticatedSites/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const { BadRequestError } = require("@errors/BadRequestError")

// Import middleware
const {
attachWriteRouteHandlerWrapper,
attachReadRouteHandlerWrapper,
attachRollbackRouteHandlerWrapper,
} = require("@middleware/routeHandler")
Expand Down Expand Up @@ -135,7 +136,7 @@ class SettingsRouter {
router.post(
"/repo-password",
this.authorizationMiddleware.verifyIsEmailUser,
attachReadRouteHandlerWrapper(this.updateRepoPassword)
attachWriteRouteHandlerWrapper(this.updateRepoPassword)
)

return router
Expand Down

0 comments on commit b96e0bc

Please sign in to comment.