From e93ace8270452b549f5ea6d696e660394d8d04bb Mon Sep 17 00:00:00 2001 From: R-Sourabh Date: Tue, 2 Apr 2024 10:20:23 +0530 Subject: [PATCH] Removed: getAvailableTimeZone and setUserTimeZones from the UserService and made minor change in package.json file. --- package-lock.json | 4 ++-- package.json | 4 ++-- src/services/UserService.ts | 18 ------------------ 3 files changed, 4 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index b018df27..b7b419f6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,8 +13,8 @@ "@casl/ability": "^6.0.0", "@hotwax/app-version-info": "^1.0.0", "@hotwax/apps-theme": "^1.2.4", - "@hotwax/dxp-components": "1.13.0", - "@hotwax/oms-api": "1.14.0", + "@hotwax/dxp-components": "^1.13.0", + "@hotwax/oms-api": "^1.14.0", "@ionic/core": "^7.8.1", "@ionic/vue": "^7.8.1", "@ionic/vue-router": "^7.8.1", diff --git a/package.json b/package.json index 910b7d42..15d7a888 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "@casl/ability": "^6.0.0", "@hotwax/app-version-info": "^1.0.0", "@hotwax/apps-theme": "^1.2.4", - "@hotwax/dxp-components": "1.13.0", - "@hotwax/oms-api": "1.14.0", + "@hotwax/dxp-components": "^1.13.0", + "@hotwax/oms-api": "^1.14.0", "@ionic/core": "^7.8.1", "@ionic/vue": "^7.8.1", "@ionic/vue-router": "^7.8.1", diff --git a/src/services/UserService.ts b/src/services/UserService.ts index fb18f2e0..36e0a131 100644 --- a/src/services/UserService.ts +++ b/src/services/UserService.ts @@ -12,22 +12,6 @@ const login = async (username: string, password: string): Promise => { }); } -const getAvailableTimeZones = async (): Promise => { - return api({ - url: "getAvailableTimeZones", - method: "get", - cache: true - }); -} - -const setUserTimeZone = async (payload: any): Promise => { - return api({ - url: "setUserTimeZone", - method: "post", - data: payload - }); -} - const getUserPermissions = async (payload: any, token: any): Promise => { const baseURL = store.getters['user/getBaseUrl']; let serverPermissions = [] as any; @@ -319,13 +303,11 @@ export const UserService = { isRoleTypeExists, isUserLoginIdExists, login, - getAvailableTimeZones, getUserProfile, getUserPermissions, fetchLogoImageForParties, fetchUserContactDetails, fetchUserLoginAndPartyDetails, sendResetPasswordEmail, - setUserTimeZone, updateUserLoginStatus } \ No newline at end of file