diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-22 22:57:48 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-22 22:57:48 +0700 |
| commit | 321e0c09be4b26d72b470407217262d10c88089d (patch) | |
| tree | 999e3db07ef3d5897cd6a585a6a4fc8aea120c72 /src/lib/auth/api | |
| parent | c6a489da2f3df46b867891c12a3c5f4121f920b0 (diff) | |
fix
Diffstat (limited to 'src/lib/auth/api')
| -rw-r--r-- | src/lib/auth/api/editPersonalProfileApi.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/auth/api/editPersonalProfileApi.js b/src/lib/auth/api/editPersonalProfileApi.js new file mode 100644 index 00000000..af2ad4b2 --- /dev/null +++ b/src/lib/auth/api/editPersonalProfileApi.js @@ -0,0 +1,10 @@ +import odooApi from "@/core/api/odooApi" +import { getAuth } from "@/core/utils/auth" + +const editPersonalProfileApi = async ({ data }) => { + const auth = getAuth() + const dataProfile = await odooApi('PUT', `/api/v1/user/${auth.id}`, data) + return dataProfile +} + +export default editPersonalProfileApi
\ No newline at end of file |
