From e81c2b7f21c7fa859e4a2c9b7f1a34819ff8b184 Mon Sep 17 00:00:00 2001 From: Michaela Brydon Date: Fri, 26 Jan 2024 15:35:31 -0500 Subject: [PATCH 1/2] sending date of loss to dupe check instead of phone number --- src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index e82cc2ab..a4e9f04d 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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 ?? []; From 902c17b393859365841843d79e3b7c6d6ecb482f Mon Sep 17 00:00:00 2001 From: Michaela Brydon Date: Fri, 26 Jan 2024 15:57:10 -0500 Subject: [PATCH 2/2] updating parameter --- src/constants/endpoints.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index fbbf0400..60ef3ba8 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -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: {