Procházet zdrojové kódy

1d array

Signed-off-by: Alex Meijer <ameijer@kubecost.com>
Alex Meijer před 2 roky
rodič
revize
39a0fa7ee2
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      core/pkg/model/custom_cost_response.go

+ 2 - 2
core/pkg/model/custom_cost_response.go

@@ -9,7 +9,7 @@ type CustomCostResponse struct {
 	Version    string
 	Version    string
 	Currency   string
 	Currency   string
 	Window     opencost.Window
 	Window     opencost.Window
-	Costs      [][]*CustomCost
+	Costs      []*CustomCost
 	Errors     []error
 	Errors     []error
 }
 }
 
 
@@ -232,7 +232,7 @@ func (d *CustomCostResponse) GetWindow() opencost.Window {
 	return d.Window
 	return d.Window
 }
 }
 
 
-func (d *CustomCostResponse) GetCosts() [][]*CustomCost {
+func (d *CustomCostResponse) GetCosts() []*CustomCost {
 	return d.Costs
 	return d.Costs
 }
 }