Fix more types and use logical ANDs

This commit is contained in:
Isaac Wise
2024-07-27 17:40:07 -05:00
parent ff31732ba3
commit 4faf389a2b
16 changed files with 40 additions and 86 deletions
@@ -26,7 +26,7 @@ export default async function deleteUserById(
if (user.password) {
const isPasswordValid = bcrypt.compareSync(
body.password,
user.password as string
user.password
);
if (!isPasswordValid && !isServerAdmin) {