default to subscription

This commit is contained in:
mr
2026-03-13 14:25:04 +01:00
parent aeebd8b5b2
commit 2cdf15d722
4 changed files with 9 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ package workflow_execution
import (
"encoding/json"
"fmt"
"strings"
"time"
@@ -141,6 +142,7 @@ func (d *WorkflowExecution) Buy(bs pricing.BillingStrategy, executionsID string,
func (d *WorkflowExecution) buyEach(bs pricing.BillingStrategy, executionsID string, wfID string, dt tools.DataType, priceds map[string]pricing.PricedItemITF) []*purchase_resource.PurchaseResource {
items := []*purchase_resource.PurchaseResource{}
for itemID, priced := range priceds {
fmt.Println(priced.IsPurchasable(), bs)
if !priced.IsPurchasable() || bs != pricing.BILL_ONCE { // buy only that must be buy
continue
}