Merge pull request #2041 from automatisch/remove-redundant-async-handler-wrapper

fix: remove redundant asyncHandler wrapper
This commit is contained in:
Ömer Faruk Aydın
2024-08-28 12:38:36 +03:00
committed by GitHub

View File

@@ -10,13 +10,12 @@ import updateAuthClientAction from '../../../../controllers/api/v1/admin/apps/up
const router = Router();
router.post(
'/:appKey/config',
authenticateUser,
authorizeAdmin,
checkIsEnterprise,
asyncHandler(createConfigAction)
createConfigAction
);
router.get(
@@ -48,7 +47,7 @@ router.patch(
authenticateUser,
authorizeAdmin,
checkIsEnterprise,
asyncHandler(updateAuthClientAction)
updateAuthClientAction
);
export default router;