From 4920322d0afbd785447a44247966202ae64e110e Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 13 Feb 2025 08:26:26 +0100 Subject: [PATCH] workflow scheduler create booking with a booking execution lot id --- models/common/planner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/common/planner.go b/models/common/planner.go index 066d5a3..3b15372 100644 --- a/models/common/planner.go +++ b/models/common/planner.go @@ -7,7 +7,7 @@ import ( "cloud.o-forge.io/core/oc-lib/tools" ) -func GetPlannerNearestStart(start time.Time, planned map[tools.DataType][]pricing.PricedItemITF, request *tools.APIRequest) float64 { +func GetPlannerNearestStart(start time.Time, planned map[tools.DataType]map[string]pricing.PricedItemITF, request *tools.APIRequest) float64 { near := float64(10000000000) // set a high value for _, items := range planned { // loop through the planned items for _, priced := range items { // loop through the priced items