Skip to content

Commit

Permalink
Rest comformity
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammed HAJJI BABA committed Jan 6, 2025
1 parent 8d1d40a commit 35984c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/users/index.patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default defineEventHandler(async (event) => {
await $fetch("/api/users/modify/username", { headers });
}
if (body.password) {
$fetch("/api/users/modify/password", { headers });
await $fetch("/api/users/modify/password", { headers });
}
return { message: "Data has been updated", status: 200 };

Expand Down

0 comments on commit 35984c7

Please sign in to comment.