make it bett

This commit is contained in:
pawan-dot 2022-06-24 14:10:21 +05:30
parent 081769c0e2
commit f3a70b0fe9

View File

@ -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) {