From 681e3dab5032fa7f9549fb089d178df07323683e Mon Sep 17 00:00:00 2001 From: Jeremy Zimmerman Date: Fri, 22 Sep 2023 11:44:47 -0400 Subject: [PATCH] Fixed some inconsistencies when calling the global callHttpClient method. Some of these were improperly using "methods" instead of "method". --- src/store/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index f74b80cd..6252de32 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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}` }); },