Skip to content

Commit

Permalink
VEGA-2501 : Update the change type
Browse files Browse the repository at this point in the history
  • Loading branch information
ndasmoj committed Oct 17, 2024
1 parent 593b816 commit d8cedb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lambda/update/opg_change_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestValidateUpdateOPGChangeStatus(t *testing.T) {
}{
"valid - with previous values": {
update: shared.Update{
Type: "OPG_CHANGE_STATUS",
Type: "OPG_STATUS_CHANGE",
Changes: []shared.Change{
{
Key: "/status",
Expand All @@ -67,7 +67,7 @@ func TestValidateUpdateOPGChangeStatus(t *testing.T) {
},
"invalid status": {
update: shared.Update{
Type: "OPG_CHANGE_STATUS",
Type: "OPG_STATUS_CHANGE",
Changes: []shared.Change{
{
Key: "/status",
Expand Down
2 changes: 1 addition & 1 deletion lambda/update/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func validateUpdate(update shared.Update, lpa *shared.Lpa) (Applyable, []shared.
return validateStatutoryWaitingPeriod(update.Changes)
case "REGISTER":
return validateRegister(update.Changes)
case "OPG_CHANGE_STATUS":
case "OPG_STATUS_CHANGE":
return validateOpgChangeStatus(update.Changes, lpa)
case "TRUST_CORPORATION_SIGN":
return validateTrustCorporationSign(update.Changes, lpa)
Expand Down

0 comments on commit d8cedb4

Please sign in to comment.