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

PIN-5371 - delegation-readmodel-writer #1065

Open
wants to merge 3 commits into
base: feature/delegation-process
Choose a base branch
from

Conversation

Carminepo2
Copy link
Contributor

No description provided.

Copy link
Collaborator

@sandrotaje sandrotaje left a comment

Choose a reason for hiding this comment

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

It looks good to me, just some minor comments inline

},
{
$set: {
data: delegation ? fromDelegationV2(delegation) : undefined,
Copy link
Collaborator

Choose a reason for hiding this comment

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

In which cases delegation is undefined?

export const fromDelegationStampsV2 = (
input: DelegationStampsV2
): DelegationStamps => {
if (!input.submission) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this a possible case?

};

export const fromDelegationV2 = (input: DelegationV2): Delegation => {
if (!input.stamps) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this still valid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants