diff options
| author | Indoteknik . <andrifebriyadiputra@gmail.com> | 2025-08-16 14:46:48 +0700 |
|---|---|---|
| committer | Indoteknik . <andrifebriyadiputra@gmail.com> | 2025-08-16 14:46:48 +0700 |
| commit | c6b75363821e5c1153d8a9e2c1a4326568ab6026 (patch) | |
| tree | d5940768d254d3aa6862c32012002d5274467227 /src/lib/auth/api/checkParentStatusApi.js | |
| parent | ba157d5e0cd30ae2ed13edba051038c2c7bb1a1f (diff) | |
| parent | e3bf34095ac7571d04ebddba6f04815d7a71ed13 (diff) | |
fix merge
Diffstat (limited to 'src/lib/auth/api/checkParentStatusApi.js')
| -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 |
