blob: 4005ce3cca098891cbcdebc3fd96b8319cbdb994 (
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(
'PUT',
`/api/v1/user/${auth.partner_id}/switch_progres`
);
console.log('switchAccount', switchAccount);
return switchAccount;
};
export default switchAccountProgresApi;
|