Skip to content

Commit

Permalink
Removed: getAvailableTimeZone and setUserTimeZones from the UserServi…
Browse files Browse the repository at this point in the history
…ce and made minor change in package.json file.
  • Loading branch information
R-Sourabh committed Apr 2, 2024
1 parent b522cd2 commit 3e3aa9d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@casl/ability": "^6.0.0",
"@hotwax/app-version-info": "^1.0.0",
"@hotwax/apps-theme": "^1.2.6",
"@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.6.0",
"@ionic/vue": "^7.6.0",
"@ionic/vue-router": "^7.6.0",
Expand Down
16 changes: 0 additions & 16 deletions src/services/UserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,6 @@ const checkPermission = async (payload: any): Promise <any> => {
});
}

const getAvailableTimeZones = async (): Promise <any> => {
return api({
url: "getAvailableTimeZones",
method: "get",
cache: true
});
}
const setUserTimeZone = async (payload: any): Promise <any> => {
return api({
url: "setUserTimeZone",
method: "post",
data: payload
});
}
const getQOHViewConfig = async (token: any, productStoreId: any): Promise<any> => {
// If the productStoreId is not provided, it may be case of facility not associated with any productStore
if (!productStoreId) {
Expand Down Expand Up @@ -225,12 +211,10 @@ const getCurrentEComStore = async (token: any, facilityId: any): Promise<any> =>

export const UserService = {
login,
getAvailableTimeZones,
getCurrentEComStore,
getQOHViewConfig,
getUserPermissions,
getUserProfile,
setUserTimeZone,
checkPermission,
updateQOHViewConfig
}
1 change: 0 additions & 1 deletion src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ import { Actions, hasPermission } from '@/authorization'
import { UserService } from '@/services/UserService'
import { hasError, showToast } from '@/utils';
import { translate } from "@/i18n";
// import { DxpTimeZoneSwitcher } from '@hotwax/dxp-components';
export default defineComponent({
name: 'Settings',
Expand Down

0 comments on commit 3e3aa9d

Please sign in to comment.