Merge pull request #544 from Safelite/feature/digital/SSR-510
sending date of loss to dupe check instead of phone number
This commit is contained in:
commit
7215f0e464
2 changed files with 2 additions and 2 deletions
|
|
@ -172,7 +172,7 @@ const endpoints = Object.freeze({
|
|||
},
|
||||
DuplicateSearch: {
|
||||
// eslint-disable-next-line max-len
|
||||
url: (accountNumber, policyNumber, phoneNumber) => `/order/api/v1/order/duplicate-check/${accountNumber}/${policyNumber}/${phoneNumber}`,
|
||||
url: (accountNumber, policyNumber, dateOfLoss) => `/order/api/v1/order/duplicate-check/${accountNumber}/${policyNumber}/${dateOfLoss}`,
|
||||
method: 'GET'
|
||||
},
|
||||
FinalDeductible: {
|
||||
|
|
|
|||
|
|
@ -621,7 +621,7 @@ export const useMainStore = defineStore({
|
|||
endpoint: endpoints.DuplicateSearch.url(
|
||||
this.issConfig.parentAccountNumber,
|
||||
this.order.policy.policyNumber,
|
||||
this.order.customer.phoneNumber?.replaceAll('-', '')
|
||||
this.order.policy.dateOfLoss
|
||||
)
|
||||
}).then((r) => {
|
||||
this.applicationUser.duplicateOrders = r.data ?? [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue