minor changes

This commit is contained in:
daniel31x13
2023-11-19 08:38:05 -05:00
parent eb78fb71d9
commit 9938d21499
3 changed files with 13 additions and 10 deletions
@@ -22,7 +22,10 @@ export default async function deleteUserById(
}
// Then, we check if the provided password matches the one stored in the database
const isPasswordValid = bcrypt.compareSync(body.password, user.password || "");
const isPasswordValid = bcrypt.compareSync(
body.password,
user.password || ""
);
if (!isPasswordValid) {
return {