summaryrefslogtreecommitdiff
path: root/src/lib/auth/api/switchAccountProgresApi.js
blob: ba1c35fa65432f22f8036a98699c44aa575e0274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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(
    'GET',
    `/api/v1/user/${auth.partnerId}/switch_progres`
  );
  console.log('switchAccount', switchAccount);
  return switchAccount;
};

export default switchAccountProgresApi;