Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

18625 Fix validate nr func #584

Merged
merged 2 commits into from
Nov 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/Restoration/BusinessName.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,12 @@ export default class BusinessName extends Mixins(CommonMixin, DateMixin, NameReq
/**
* Fetches and validation a NR.
* @param nrNum the NR number
* @param businessId the business id
* @param phone the phone number to match
* @param email the email address to match
* @returns a promise to return the NR, or throws a printable error
*/
async fetchAndValidateNr (nrNum: string, phone: string, email: string): Promise<NameRequestIF> {
async fetchAndValidateNr (nrNum: string, businessId: string, phone: string, email: string): Promise<NameRequestIF> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/kzdev420/bcrs-shared-components/blob/8dc1f0a920dcccabd46b1cfe57eb733131a4f6b7/src/components/correct-name/CorrectNameRequest.vue#L176-L178

At the Shared-component-correctNR, the Fetch&ValidateNR func has 4 params including businessId.
So, I added the businessId Arguments at the Create-UI too

const nameRequest = await LegalServices.fetchValidContactNr(nrNum, phone, email)
if (!nameRequest) throw new Error('Error fetching Name Request')

Expand Down
Loading