From 35984c7b01bc24f27f6ac04f05ba995546eb37b2 Mon Sep 17 00:00:00 2001 From: Mohammed HAJJI BABA Date: Mon, 6 Jan 2025 19:09:59 +0100 Subject: [PATCH] Rest comformity --- server/api/users/index.patch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/users/index.patch.ts b/server/api/users/index.patch.ts index 60093b9..7d2157d 100644 --- a/server/api/users/index.patch.ts +++ b/server/api/users/index.patch.ts @@ -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 };