Add WithNonactiveKillSwitches field to GetKillSwitchOverviewRequest
This will be used by the extension to only get active kill switches.
Change-Id: Ibe7ad4cdb74ab7b385f3d18b70e74da6b834375c
diff --git a/cmd/server/server.go b/cmd/server/server.go
index c6272f3..72f2ee2 100644
--- a/cmd/server/server.go
+++ b/cmd/server/server.go
@@ -143,7 +143,7 @@
}
func (s *killSwitchServiceServer) GetKillSwitchOverview(ctx context.Context, req *pb.GetKillSwitchOverviewRequest) (*pb.GetKillSwitchOverviewResponse, error) {
- killSwitches, err := db.ListKillSwitches(s.dbPool, ctx)
+ killSwitches, err := db.ListKillSwitches(s.dbPool, ctx, req.WithNonactiveKillSwitches)
if err != nil {
return nil, status.Errorf(codes.Unavailable, err.Error())
}