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

Raisely Enrichment Service Updates #151

Merged
merged 4 commits into from
Jul 27, 2023
Merged

Conversation

Levi-Lehman
Copy link
Contributor

No description provided.

@@ -43,27 +43,28 @@ public void enrich(CrmDonation crmDonation) throws Exception {
String donationId = parseDonationId(crmDonation.description);
RaiselyClient.Donation raiselyDonation = raiselyClient.getDonation(donationId);

if (raiselyDonation == null || raiselyDonation.items == null || raiselyDonation.items.size() <= 1) {
if (raiselyDonation == null || raiselyDonation.items == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we check if both are empty too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a check for items being empty, raiselyClient.getDonation() already includes checks for empty responses. Is it safe to assume that if it gets here it has content?

@brmeyer
Copy link
Contributor

brmeyer commented Jul 27, 2023

Rebasing this so it doesn't have some of my new commits in it

@brmeyer brmeyer force-pushed the raisely_enrichment_service_update branch from 57bd83f to 3e79c23 Compare July 27, 2023 01:31
@brmeyer brmeyer merged commit b22d1c9 into master Jul 27, 2023
1 check failed
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.

2 participants