summaryrefslogtreecommitdiff
path: root/src/lib/auth/api
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-09-23 13:15:02 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-09-23 13:15:02 +0700
commitf0f002ff77481db91d264069d09f580d58001a8c (patch)
treecb3b916a1688c17407d1a831e36c12c6021feac3 /src/lib/auth/api
parentc13bb5c6f78032695b24cf8a6c23942eb465c6d5 (diff)
<iman> update switch account
Diffstat (limited to 'src/lib/auth/api')
-rw-r--r--src/lib/auth/api/switchAccountApi.js2
-rw-r--r--src/lib/auth/api/switchAccountProgresApi.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/auth/api/switchAccountApi.js b/src/lib/auth/api/switchAccountApi.js
index 9b772d20..79ca2553 100644
--- a/src/lib/auth/api/switchAccountApi.js
+++ b/src/lib/auth/api/switchAccountApi.js
@@ -5,7 +5,7 @@ const switchAccountApi = async ({ data }) => {
const auth = getAuth();
const switchAccount = await odooApi(
'PUT',
- `/api/v1/user/${auth.partner_id}/switch`,
+ `/api/v1/user/${auth.partnerId}/switch`,
data
);
return switchAccount;
diff --git a/src/lib/auth/api/switchAccountProgresApi.js b/src/lib/auth/api/switchAccountProgresApi.js
index 23e06742..ba1c35fa 100644
--- a/src/lib/auth/api/switchAccountProgresApi.js
+++ b/src/lib/auth/api/switchAccountProgresApi.js
@@ -6,7 +6,7 @@ const switchAccountProgresApi = async () => {
console.log('auth', auth);
const switchAccount = await odooApi(
'GET',
- `/api/v1/user/${auth.partner_id}/switch_progres`
+ `/api/v1/user/${auth.partnerId}/switch_progres`
);
console.log('switchAccount', switchAccount);
return switchAccount;