From e3664c1d43d5bb7608d2921e7806b267de232a14 Mon Sep 17 00:00:00 2001 From: Dylan Ratcliffe Date: Wed, 22 Nov 2023 14:40:15 +0000 Subject: [PATCH] Fixed hardcoding of blast radius --- cmd/getchange.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/getchange.go b/cmd/getchange.go index f1bdf87d..2851ff58 100644 --- a/cmd/getchange.go +++ b/cmd/getchange.go @@ -215,8 +215,8 @@ func GetChange(ctx context.Context, ready chan bool) int { ChangeUrl: fmt.Sprintf("%v/changes/%v", viper.GetString("frontend"), changeUuid.String()), ExpectedChanges: []TemplateItem{}, UnmappedChanges: []TemplateItem{}, - BlastItems: 75, - BlastEdges: 97, + BlastItems: int(changeRes.Msg.Change.Metadata.NumAffectedItems), + BlastEdges: int(changeRes.Msg.Change.Metadata.NumAffectedEdges), Risks: []TemplateRisk{}, }