diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-16 08:16:10 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-16 08:16:10 +0700 |
| commit | 91b73f89b35874df3e0b88c67cf906df06965782 (patch) | |
| tree | 8a4bac4fb6e67c086a493e6683ce43f733468eba /src/lib/auth/api/checkParentStatusApi.js | |
| parent | 0fa70adbf4a9fab74337d35dcfd21722370ac93e (diff) | |
| parent | 1a68a24e9fb58ecc1ade9d1d792ea06b432e4989 (diff) | |
Merge branch 'new-release' of https://bitbucket.org/altafixco/next-indoteknik into fix-map
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 |
