From d8cedb43bba31e3b9b0eab67cb678074160ab9a9 Mon Sep 17 00:00:00 2001 From: Niladri Das Date: Thu, 17 Oct 2024 12:52:09 +0100 Subject: [PATCH] VEGA-2501 : Update the change type --- lambda/update/opg_change_status_test.go | 4 ++-- lambda/update/validate.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lambda/update/opg_change_status_test.go b/lambda/update/opg_change_status_test.go index 5efb2b53..ef83796a 100644 --- a/lambda/update/opg_change_status_test.go +++ b/lambda/update/opg_change_status_test.go @@ -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", @@ -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", diff --git a/lambda/update/validate.go b/lambda/update/validate.go index 7c1c0398..630b77b6 100644 --- a/lambda/update/validate.go +++ b/lambda/update/validate.go @@ -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)