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 0957446 commit e93ace8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 0 additions & 18 deletions src/services/UserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,6 @@ const login = async (username: string, password: string): 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 getUserPermissions = async (payload: any, token: any): Promise<any> => {
const baseURL = store.getters['user/getBaseUrl'];
let serverPermissions = [] as any;
Expand Down Expand Up @@ -319,13 +303,11 @@ export const UserService = {
isRoleTypeExists,
isUserLoginIdExists,
login,
getAvailableTimeZones,
getUserProfile,
getUserPermissions,
fetchLogoImageForParties,
fetchUserContactDetails,
fetchUserLoginAndPartyDetails,
sendResetPasswordEmail,
setUserTimeZone,
updateUserLoginStatus
}

0 comments on commit e93ace8

Please sign in to comment.