fix: fix bug in Pricing (#2255)

This commit is contained in:
haiwu
2023-08-25 19:27:46 +08:00
committed by GitHub
parent 739a9bcd0d
commit 9da2f0775f
2 changed files with 4 additions and 0 deletions

View File

@ -283,6 +283,9 @@ func CreateProductForPlan(plan *Plan) *Product {
Providers: plan.PaymentProviders,
State: "Published",
}
if product.Providers == nil {
product.Providers = []string{}
}
return product
}