diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-09-11 17:07:49 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-09-11 17:07:49 +0700 |
| commit | 752e55686dfee0d536f9e4e128336e91681ba794 (patch) | |
| tree | 65ab321175aee5520857c9e80f44009bde356c44 /src/lib/auth/api/switchAccountProgresApi.js | |
| parent | ab39764b288b4d60923cc8cc6146ccdc1b4bfbac (diff) | |
<iman> update switch account
Diffstat (limited to 'src/lib/auth/api/switchAccountProgresApi.js')
| -rw-r--r-- | src/lib/auth/api/switchAccountProgresApi.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/auth/api/switchAccountProgresApi.js b/src/lib/auth/api/switchAccountProgresApi.js new file mode 100644 index 00000000..4005ce3c --- /dev/null +++ b/src/lib/auth/api/switchAccountProgresApi.js @@ -0,0 +1,15 @@ +import odooApi from '@/core/api/odooApi'; +import { getAuth } from '@/core/utils/auth'; + +const switchAccountProgresApi = async () => { + const auth = getAuth(); + console.log('auth', auth); + const switchAccount = await odooApi( + 'PUT', + `/api/v1/user/${auth.partner_id}/switch_progres` + ); + console.log('switchAccount', switchAccount); + return switchAccount; +}; + +export default switchAccountProgresApi; |
