mern_stack_course icon indicating copy to clipboard operation
mern_stack_course copied to clipboard

Fixing Errors with deleteUser function

Open aditya-an1l opened this issue 1 year ago • 0 comments

Error: I ran the code, and the DELETE request returned a dubious json message like Username undefined with ID undefined deleted

Reason: Possibly some changes in the newer versions of Node or dependencies packages

Changes: Changed the result in the deleteUser code block. Instead of Username ${result.username} with ID ${result._id} deleted, I used Username ${user.username} with ID ${user._id} deleted

aditya-an1l avatar Jun 10 '24 21:06 aditya-an1l