From a0be100db5fe07f7159d97601c4dc4cdf5507797 Mon Sep 17 00:00:00 2001 From: Theis Gaedigk Date: Tue, 16 Sep 2025 13:40:23 +0200 Subject: [PATCH] update changeSafeState function to use PUT method for state changes --- admin/src/utils/userActions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/src/utils/userActions.ts b/admin/src/utils/userActions.ts index 1e734c9..a4b3043 100644 --- a/admin/src/utils/userActions.ts +++ b/admin/src/utils/userActions.ts @@ -198,6 +198,7 @@ export const changeSafeState = async (itemId: number) => { const response = await fetch( `https://backend.insta.the1s.de/api/changeSafeState/${itemId}`, { + method: "PUT", headers: { Authorization: `Bearer ${Cookies.get("token")}`, },