Skip to content

Commit

Permalink
make mobile optional
Browse files Browse the repository at this point in the history
  • Loading branch information
acsauk committed Apr 29, 2024
1 parent 17a6449 commit 3b2c54f
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 @@ -63,7 +63,7 @@ func validateAttorneySign(changes []shared.Change, lpa *shared.Lpa) (AttorneySig
Field("/channel", &data.Channel, parse.Validate(func() []shared.FieldError {
return validate.IsValid("", data.Channel)
}), parse.MustMatchExisting()).
Field("/email", &data.Email, parse.MustMatchExisting()).
Field("/email", &data.Email, parse.MustMatchExisting(), parse.Optional()).
Consumed()
}).
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 @@ -77,11 +77,6 @@ func TestValidateUpdateAttorneySign(t *testing.T) {
New: json.RawMessage(`"online"`),
Old: jsonNull,
},
{
Key: "/attorneys/0/email",
New: json.RawMessage(`"[email protected]"`),
Old: jsonNull,
},
},
},
lpa: &shared.Lpa{LpaInit: shared.LpaInit{Attorneys: []shared.Attorney{
Expand Down

0 comments on commit 3b2c54f

Please sign in to comment.