I am not Face any Error but Result is not get?

Router.post(“/”, async (req, res) => {
try {
const getdataDB = await Createuser.findOne({ name: req.body.name });

const decryptedPassword = CryptoJS.AES.decrypt(
  getdataDB.password,
  process.env.PASS_SEC
).toString(CryptoJS.enc.Utf8);

if (decryptedPassword === req.body.password) {
  res.send(getdataDB);
} else {
  res.send("Password not matched");
}

} catch (error) {
console.log(error);
res.status(500).send(“Server Error”);
}
});

Can you please Resolve anyOne solve my issue