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) {
|
||||
return globalMethods.callHttpClient({
|
||||
methods: endpoints.GetDamageOptions.method,
|
||||
method: endpoints.GetDamageOptions.method,
|
||||
endpoint: `${endpoints.GetDamageOptions.url}/${carId}`,
|
||||
payload: {}
|
||||
});
|
||||
|
|
@ -799,7 +799,7 @@ export const useMainStore = defineStore({
|
|||
setVehicle() {
|
||||
return globalMethods
|
||||
.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}`,
|
||||
payload: {}
|
||||
})
|
||||
|
|
@ -1535,7 +1535,7 @@ export const useMainStore = defineStore({
|
|||
|
||||
async validateZip({ zip }) {
|
||||
return await globalMethods.callHttpClient({
|
||||
methods: endpoints.ValidateZip.method,
|
||||
method: endpoints.ValidateZip.method,
|
||||
endpoint: `${endpoints.ValidateZip.url}/${zip}`
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue