summaryrefslogtreecommitdiff
path: root/src/lib/auth/api
diff options
context:
space:
mode:
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;