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

CRDCDH 2161 #714

Merged
merged 2 commits into from
Feb 14, 2025
Merged

CRDCDH 2161 #714

merged 2 commits into from
Feb 14, 2025

Conversation

vshand11
Copy link
Contributor

Updated based on changes in user story and task as listed below:
-Update createApprovedStudy and updateApprovedStudy APIs and make primaryContactID parameter optional
-Update ApprovedStudy GraphQL type and all APIs which returns that type and change program to programs and make is [UserOrganization]

throw new Error(ERROR.INVALID_PRIMARY_CONTACT_ROLE);
let primaryContact = null;
if (!primaryContactID) {
const primaryContact = await this.#findUserByID(primaryContactID);
Copy link
Contributor

@knockknockyoo knockknockyoo Feb 11, 2025

Choose a reason for hiding this comment

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

This wouldn't be ideal since primaryContact has already been declared as null.
let => const?

Copy link
Contributor Author

@vshand11 vshand11 Feb 11, 2025

Choose a reason for hiding this comment

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

It can't be const because it could be reassigned to what find by the primaryContactID. It will be add to return value.

Copy link
Contributor

Choose a reason for hiding this comment

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

The value is changing let => const
Please, take a look at the line 293.
primaryContact = await this.#findUserByID(primaryContactID);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, updated, thanks!

Copy link
Contributor

@knockknockyoo knockknockyoo left a comment

Choose a reason for hiding this comment

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

Perfect!

@AustinSMueller AustinSMueller merged commit b5979da into 3.2.0 Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants