summaryrefslogtreecommitdiff
path: root/src-migrate/services/auth.ts
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-01-04 03:07:56 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-01-04 03:07:56 +0000
commit0d33de3744f612262c12d648cd7147a2ef238a36 (patch)
tree285af0ed69169621228e252affdac958f016dab2 /src-migrate/services/auth.ts
parentbb8ee26d89842b4f9b99b48f2a7cc464c6ecc4ee (diff)
parent67398e6f10d6f7729d8f1ace7005ef13d32c5ddd (diff)
Merged in Feature/promotion-program (pull request #124)
Feature/promotion program
Diffstat (limited to 'src-migrate/services/auth.ts')
-rw-r--r--src-migrate/services/auth.ts24
1 files changed, 4 insertions, 20 deletions
diff --git a/src-migrate/services/auth.ts b/src-migrate/services/auth.ts
index a5d02754..1cc09c10 100644
--- a/src-migrate/services/auth.ts
+++ b/src-migrate/services/auth.ts
@@ -15,39 +15,23 @@ const BASE_PATH = '/api/v1/user';
export const registerUser = async (
data: RegisterProps
): Promise<RegisterResApiProps> => {
- const response = await odooApi('POST', `${BASE_PATH}/register`, data);
-
- return response;
+ return await odooApi('POST', `${BASE_PATH}/register`, data);
};
export const activationUserToken = async (
params: ActivationTokenProps
): Promise<ActivationTokenResApiProps> => {
- const response = await odooApi(
- 'POST',
- `${BASE_PATH}/activation-token`,
- params
- );
-
- return response;
+ return await odooApi('POST', `${BASE_PATH}/activation-token`, params);
};
export const activationUserOTP = async (
params: ActivationOtpProps
): Promise<ActivationOtpResApiProps> => {
- const response = await odooApi('POST', `${BASE_PATH}/activation-otp`, params);
-
- return response;
+ return await odooApi('POST', `${BASE_PATH}/activation-otp`, params);
};
export const activationReq = async (
params: ActivationReqProps
): Promise<ActivationReqResApiProps> => {
- const response = await odooApi(
- 'POST',
- `${BASE_PATH}/activation-request`,
- params
- );
-
- return response;
+ return await odooApi('POST', `${BASE_PATH}/activation-request`, params);
};