diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-12-15 17:15:32 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-12-15 17:15:32 +0700 |
| commit | c9366090153e8aba3a673b2b77cbc8acc24e59a5 (patch) | |
| tree | 9bad672e511d5585bb4be5b4e3190aca7c4a16af /src-migrate/services/auth.ts | |
| parent | a5321d82f4b5e8404f575f1d62e92d0322d78db9 (diff) | |
Update promotion program feature
Diffstat (limited to 'src-migrate/services/auth.ts')
| -rw-r--r-- | src-migrate/services/auth.ts | 24 |
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); }; |
