CASH-2954: Use V2 for parts-or-questions if VINRequired

This commit is contained in:
credelinghuys 2026-06-26 14:42:58 -04:00
parent 9e8a97c89c
commit 54fbc245f5
2 changed files with 3 additions and 3 deletions

View file

@ -56,8 +56,8 @@ const endpoints = {
url: "/parts/api/v1/parts/parts-or-questions", url: "/parts/api/v1/parts/parts-or-questions",
method: "POST", method: "POST",
}, },
GetPartsOrQuestionsV3: { GetPartsOrQuestionsV2: {
url: "/parts/api/v3/parts/parts-or-questions", url: "/parts/api/v2/parts/parts-or-questions",
method: "POST", method: "POST",
}, },
GetParts: { GetParts: {

View file

@ -1995,7 +1995,7 @@ export const actions = {
const glassArrayForPayload = convertGlassPieceNamingForApi(glassArray); const glassArrayForPayload = convertGlassPieceNamingForApi(glassArray);
const partsOrQuestionsEndpoint = vehicle.vinRequired const partsOrQuestionsEndpoint = vehicle.vinRequired
? endpoints.GetPartsOrQuestionsV3 ? endpoints.GetPartsOrQuestionsV2
: endpoints.GetPartsOrQuestions; : endpoints.GetPartsOrQuestions;
const response = await globalMethods const response = await globalMethods