Skip to content

Commit

Permalink
Improved: letter casing in method and variable for organization party…
Browse files Browse the repository at this point in the history
… id (#278)
  • Loading branch information
amansinghbais committed Jul 9, 2024
1 parent 666c696 commit c3fe533
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/CreateVirtualFacilityModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default defineComponent({
computed: {
...mapGetters({
virtualFacilities: 'facility/getVirtualFacilities',
organizationPartyId: 'util/getOrganizationPartyID'
organizationPartyId: 'util/getOrganizationPartyId'
})
},
data() {
Expand Down
6 changes: 3 additions & 3 deletions src/services/FacilityService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ const deleteFacilityGroup = async (payload: any): Promise<any> => {
}

const createFacilityLogin = async (payload: any): Promise <any> => {
const organizationPartyID = store.getters['util/getOrganizationPartyID'];
const organizationPartyId = store.getters['util/getOrganizationPartyId'];

try {
//Create role type if not exists. This is required for associating facility login user to facility.
Expand All @@ -689,7 +689,7 @@ const createFacilityLogin = async (payload: any): Promise <any> => {
const params = {
"groupName": payload.facilityName,
"partyTypeId": "PARTY_GROUP",
"partyIdFrom": organizationPartyID,
"partyIdFrom": organizationPartyId,
"roleTypeIdFrom": "INTERNAL_ORGANIZATIO", // not a typo
"roleTypeIdTo": "APPLICATION_USER",
"partyRelationshipTypeId": "EMPLOYMENT"
Expand All @@ -709,7 +709,7 @@ const createFacilityLogin = async (payload: any): Promise <any> => {
"requirePasswordChange": "N",
"enabled": "Y",
"userPrefTypeId": "ORGANIZATION_PARTY",
"userPrefValue": organizationPartyID
"userPrefValue": organizationPartyId
});
if (hasError(resp)) {
throw resp.data;
Expand Down
2 changes: 1 addition & 1 deletion src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const state: any = {
}

const persistState = createPersistedState({
paths: ['user', 'util.organizationPartyID'],
paths: ['user', 'util.organizationPartyId'],
fetchBeforeUse: true
})

Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/util/UtilState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export default interface UtilState {
states: any;
shopifyShopForProductStore: any;
inventoryGroups: [];
organizationPartyID: string;
organizationPartyId: string;
}
4 changes: 2 additions & 2 deletions src/store/modules/util/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const getters: GetterTree<UtilState, RootState> = {
getInventoryGroups(state) {
return state.inventoryGroups;
},
getOrganizationPartyID(state) {
return state.organizationPartyID;
getOrganizationPartyId(state) {
return state.organizationPartyId;
}
}
export default getters;
2 changes: 1 addition & 1 deletion src/store/modules/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const utilModule: Module<UtilState, RootState> = {
states: {},
shopifyShopForProductStore: {},
inventoryGroups: [],
organizationPartyID: ""
organizationPartyId: ""
},
getters,
actions,
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/util/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const mutations: MutationTree<UtilState> = {
state.inventoryGroups = payload
},
[types.UTIL_ORGANIZATION_PARTY_ID_UPDATED](state, payload) {
state.organizationPartyID = payload
state.organizationPartyId = payload
}
}
export default mutations;
2 changes: 1 addition & 1 deletion src/views/CreateFacility.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default defineComponent({
computed: {
...mapGetters({
facilityTypes: "util/getFacilityTypes",
organizationPartyId: "util/getOrganizationPartyID"
organizationPartyId: "util/getOrganizationPartyId"
})
},
data() {
Expand Down

0 comments on commit c3fe533

Please sign in to comment.