Fixed some inconsistencies when calling the global callHttpClient method. Some of these were improperly using "methods" instead of "method".

This commit is contained in:
Jeremy Zimmerman 2023-09-22 11:44:47 -04:00
parent 460de6e436
commit 681e3dab50

View file

@ -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}`
});
},