From b96e0bc0d4c36fadcf910ab64e0b4671b06e8f8e Mon Sep 17 00:00:00 2001 From: Kishore <42832651+kishore03109@users.noreply.github.com> Date: Wed, 6 Dec 2023 18:39:12 +0800 Subject: [PATCH] fix(privatisation): should be write handler --- src/routes/v2/authenticatedSites/settings.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/v2/authenticatedSites/settings.js b/src/routes/v2/authenticatedSites/settings.js index 11a61460f..4005a3977 100644 --- a/src/routes/v2/authenticatedSites/settings.js +++ b/src/routes/v2/authenticatedSites/settings.js @@ -6,6 +6,7 @@ const { BadRequestError } = require("@errors/BadRequestError") // Import middleware const { + attachWriteRouteHandlerWrapper, attachReadRouteHandlerWrapper, attachRollbackRouteHandlerWrapper, } = require("@middleware/routeHandler") @@ -135,7 +136,7 @@ class SettingsRouter { router.post( "/repo-password", this.authorizationMiddleware.verifyIsEmailUser, - attachReadRouteHandlerWrapper(this.updateRepoPassword) + attachWriteRouteHandlerWrapper(this.updateRepoPassword) ) return router