diff options
| author | Indoteknik . <andrifebriyadiputra@gmail.com> | 2025-08-15 13:58:59 +0700 |
|---|---|---|
| committer | Indoteknik . <andrifebriyadiputra@gmail.com> | 2025-08-15 13:58:59 +0700 |
| commit | b1bdfbb9f780a1a1305e02c4b9c338b98c7a4556 (patch) | |
| tree | 720aa9eeb0ec98a559f6a1653533185479590cc8 /src/lib/auth/api | |
| parent | 1085602ad84e73692e3ab8b9141c5f61381a8cea (diff) | |
(andri) fix switch account
Diffstat (limited to 'src/lib/auth/api')
| -rw-r--r-- | src/lib/auth/api/checkParentStatusApi.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/auth/api/checkParentStatusApi.js b/src/lib/auth/api/checkParentStatusApi.js new file mode 100644 index 00000000..aa2eb1b6 --- /dev/null +++ b/src/lib/auth/api/checkParentStatusApi.js @@ -0,0 +1,13 @@ +import odooApi from '@/core/api/odooApi'; +import { getAuth } from '@/core/utils/auth'; + +const checkParentStatusApi = async () => { + const auth = getAuth(); + const checkParentStatus = await odooApi( + 'GET', + `/api/v1/user/${auth.partnerId}/parent_status` + ); + return checkParentStatus; +}; + +export default checkParentStatusApi;
\ No newline at end of file |
