Bcrypt Error data and hash arguments required

i was trying to login the user via postman where i got the error which says:this image shows the error as well as the function (from user.model.js)which throws the error

and here is the code (from user.controller.js)

Note, i am trying the same user which exists inside the database

when i tried to look on internet i get to know, “To resolve this error, ensure that both the plain text password and the hashed password are provided when calling the compare function.”

please help me to resolve this issue.

i tried to look through ChatGPT and discord groups, but i didn’t get any solution yet related to the problem.

i want the bcrypt to compare/match successfully the raw password(text sent by the user) with the hash password(from the database)