fix: remove redundant asyncHandler wrapper
This commit is contained in:
@@ -10,13 +10,12 @@ import updateAuthClientAction from '../../../../controllers/api/v1/admin/apps/up
|
|||||||
|
|
||||||
const router = Router();
|
const router = Router();
|
||||||
|
|
||||||
|
|
||||||
router.post(
|
router.post(
|
||||||
'/:appKey/config',
|
'/:appKey/config',
|
||||||
authenticateUser,
|
authenticateUser,
|
||||||
authorizeAdmin,
|
authorizeAdmin,
|
||||||
checkIsEnterprise,
|
checkIsEnterprise,
|
||||||
asyncHandler(createConfigAction)
|
createConfigAction
|
||||||
);
|
);
|
||||||
|
|
||||||
router.get(
|
router.get(
|
||||||
@@ -48,7 +47,7 @@ router.patch(
|
|||||||
authenticateUser,
|
authenticateUser,
|
||||||
authorizeAdmin,
|
authorizeAdmin,
|
||||||
checkIsEnterprise,
|
checkIsEnterprise,
|
||||||
asyncHandler(updateAuthClientAction)
|
updateAuthClientAction
|
||||||
);
|
);
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
|
Reference in New Issue
Block a user