make it bett
This commit is contained in:
parent
081769c0e2
commit
f3a70b0fe9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user