CASH-2954: Use V2 for parts-or-questions if VINRequired
This commit is contained in:
parent
9e8a97c89c
commit
54fbc245f5
2 changed files with 3 additions and 3 deletions
|
|
@ -56,8 +56,8 @@ const endpoints = {
|
|||
url: "/parts/api/v1/parts/parts-or-questions",
|
||||
method: "POST",
|
||||
},
|
||||
GetPartsOrQuestionsV3: {
|
||||
url: "/parts/api/v3/parts/parts-or-questions",
|
||||
GetPartsOrQuestionsV2: {
|
||||
url: "/parts/api/v2/parts/parts-or-questions",
|
||||
method: "POST",
|
||||
},
|
||||
GetParts: {
|
||||
|
|
|
|||
|
|
@ -1995,7 +1995,7 @@ export const actions = {
|
|||
const glassArrayForPayload = convertGlassPieceNamingForApi(glassArray);
|
||||
|
||||
const partsOrQuestionsEndpoint = vehicle.vinRequired
|
||||
? endpoints.GetPartsOrQuestionsV3
|
||||
? endpoints.GetPartsOrQuestionsV2
|
||||
: endpoints.GetPartsOrQuestions;
|
||||
|
||||
const response = await globalMethods
|
||||
|
|
|
|||
Loading…
Reference in a new issue