From f3a70b0fe9283ee2a8ee198d4f4760943e096914 Mon Sep 17 00:00:00 2001 From: pawan-dot <71133473+pawan-dot@users.noreply.github.com> Date: Fri, 24 Jun 2022 14:10:21 +0530 Subject: [PATCH] make it bett --- controllers/userController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {