Skip to content

Commit

Permalink
Make attorney channel optional
Browse files Browse the repository at this point in the history
  • Loading branch information
hawx committed May 1, 2024
1 parent 5f0abea commit 0b7c79c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion lambda/update/attorney_sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func validateAttorneySign(changes []shared.Change, lpa *shared.Lpa) (AttorneySig
}), parse.MustMatchExisting()).
Field("/channel", &data.Channel, parse.Validate(func() []shared.FieldError {
return validate.IsValid("", data.Channel)
}), parse.MustMatchExisting()).
}), parse.MustMatchExisting(), parse.Optional()).
Field("/email", &data.Email, parse.MustMatchExisting(), parse.Optional()).
Consumed()
}).
Expand Down
5 changes: 0 additions & 5 deletions lambda/update/attorney_sign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ func TestValidateUpdateAttorneySign(t *testing.T) {
New: json.RawMessage(`"cy"`),
Old: jsonNull,
},
{
Key: "/attorneys/0/channel",
New: json.RawMessage(`"online"`),
Old: jsonNull,
},
},
},
lpa: &shared.Lpa{LpaInit: shared.LpaInit{Attorneys: []shared.Attorney{
Expand Down

0 comments on commit 0b7c79c

Please sign in to comment.