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

IMN-600 - Fixing return value for activate agreement #609

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

ecamellini
Copy link
Collaborator

@ecamellini ecamellini commented Jun 5, 2024

Closes IMN-600

Tests

See automated tests in #567, based on this one.

@ecamellini ecamellini marked this pull request as ready for review June 5, 2024 09:02
@@ -1176,3 +1190,33 @@ function maybeCreateSetToMissingCertifiedAttributesByPlatformEvent(
}
return undefined;
}

// eslint-disable-next-line max-params
async function addContractOnFirstActivation(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved this here from agreementSubmissionProcessor.ts because now I reuse it also for activation

...agreement.data,
...updatedAgreementSeed,
};

const updatedAgreement: Agreement = await addContractOnFirstActivation(
isFirstActivation,
Copy link
Contributor

Choose a reason for hiding this comment

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

minor personal opinion: it's a but odd that a function receives a flag stating if the function itself will be executed or not.
Probably when refactoring and splitting the two activation functions it will automatically become cleaner

@ecamellini ecamellini merged commit 832b713 into main Jun 5, 2024
8 checks passed
@ecamellini ecamellini deleted the IMN-600-activate-agreement-return-value-fix branch June 5, 2024 13:06
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