diff --git a/controllers/userController.js b/controllers/userController.js index ac79f0e..09f4f05 100644 --- a/controllers/userController.js +++ b/controllers/userController.js @@ -172,7 +172,7 @@ export const getUserDetails = catchAsyncErrors(async (req, res, next) => { }); // 7.Get single user (admin) -exports.getSingleUser = catchAsyncErrors(async (req, res, next) => { +export const getSingleUser = catchAsyncErrors(async (req, res, next) => { const user = await User.findById(req.params.id); if (!user) {