summaryrefslogtreecommitdiff
path: root/src/lib/auth/api/switchAccountProgresApi.js
blob: 23e0674231d5fa144f62595d23e64f9ed0ee48af (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.partner_id}/switch_progres`
  );
  console.log('switchAccount', switchAccount);
  return switchAccount;
};

export default switchAccountProgresApi;