Fixed some inconsistencies when calling the global callHttpClient method. Some of these were improperly using "methods" instead of "method".
This commit is contained in:
parent
460de6e436
commit
681e3dab50
1 changed files with 3 additions and 3 deletions
|
|
@ -344,7 +344,7 @@ export const useMainStore = defineStore({
|
||||||
|
|
||||||
getDamageOptions(carId) {
|
getDamageOptions(carId) {
|
||||||
return globalMethods.callHttpClient({
|
return globalMethods.callHttpClient({
|
||||||
methods: endpoints.GetDamageOptions.method,
|
method: endpoints.GetDamageOptions.method,
|
||||||
endpoint: `${endpoints.GetDamageOptions.url}/${carId}`,
|
endpoint: `${endpoints.GetDamageOptions.url}/${carId}`,
|
||||||
payload: {}
|
payload: {}
|
||||||
});
|
});
|
||||||
|
|
@ -799,7 +799,7 @@ export const useMainStore = defineStore({
|
||||||
setVehicle() {
|
setVehicle() {
|
||||||
return globalMethods
|
return globalMethods
|
||||||
.callHttpClient({
|
.callHttpClient({
|
||||||
methods: endpoints.GetVehicle.method,
|
method: endpoints.GetVehicle.method,
|
||||||
endpoint: `${endpoints.GetVehicle.url}/${this.order.vehicle.year}/${this.order.vehicle.make}/${this.order.vehicle.model}/${this.order.vehicle.style}`,
|
endpoint: `${endpoints.GetVehicle.url}/${this.order.vehicle.year}/${this.order.vehicle.make}/${this.order.vehicle.model}/${this.order.vehicle.style}`,
|
||||||
payload: {}
|
payload: {}
|
||||||
})
|
})
|
||||||
|
|
@ -1535,7 +1535,7 @@ export const useMainStore = defineStore({
|
||||||
|
|
||||||
async validateZip({ zip }) {
|
async validateZip({ zip }) {
|
||||||
return await globalMethods.callHttpClient({
|
return await globalMethods.callHttpClient({
|
||||||
methods: endpoints.ValidateZip.method,
|
method: endpoints.ValidateZip.method,
|
||||||
endpoint: `${endpoints.ValidateZip.url}/${zip}`
|
endpoint: `${endpoints.ValidateZip.url}/${zip}`
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue