summaryrefslogtreecommitdiff
path: root/src/lib/pengajuan-tempo/api
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-12-02 09:31:44 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-12-02 09:31:44 +0700
commit77f9843ad5072583cb1797d7ecf5ac80394bad3f (patch)
tree61d25d17d7c1a090112f673fabc96dd8ffceb79a /src/lib/pengajuan-tempo/api
parentac83b0ea5afd82194f38fbc913678e16a81b5c2c (diff)
<iman> pengajuan tempo
Diffstat (limited to 'src/lib/pengajuan-tempo/api')
-rw-r--r--src/lib/pengajuan-tempo/api/editAuthTempo.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/pengajuan-tempo/api/editAuthTempo.js b/src/lib/pengajuan-tempo/api/editAuthTempo.js
new file mode 100644
index 00000000..5fa3786b
--- /dev/null
+++ b/src/lib/pengajuan-tempo/api/editAuthTempo.js
@@ -0,0 +1,13 @@
+import odooApi from '@/core/api/odooApi';
+import { getAuth } from '@/core/utils/auth';
+
+const editAuthTempo = async () => {
+ const auth = getAuth();
+ const dataProfile = await odooApi(
+ 'PUT',
+ `/api/v1/user/${auth.id}/after_request_tempo`
+ );
+ return dataProfile;
+};
+
+export default editAuthTempo;