From c527fa8fe9772b456a11a52f52c7ee091504d734 Mon Sep 17 00:00:00 2001 From: "Indoteknik ." Date: Tue, 12 Aug 2025 17:31:31 +0700 Subject: (andri) fix switch account ke bisnis --- src/lib/auth/api/switchAccountApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/auth/api/switchAccountApi.js') diff --git a/src/lib/auth/api/switchAccountApi.js b/src/lib/auth/api/switchAccountApi.js index 79ca2553..f62693f6 100644 --- a/src/lib/auth/api/switchAccountApi.js +++ b/src/lib/auth/api/switchAccountApi.js @@ -4,7 +4,7 @@ import { getAuth } from '@/core/utils/auth'; const switchAccountApi = async ({ data }) => { const auth = getAuth(); const switchAccount = await odooApi( - 'PUT', + 'POST', `/api/v1/user/${auth.partnerId}/switch`, data ); -- cgit v1.2.3