Don't email licensed/internal customers about Cloud Renewals (#26268)

Этот коммит содержится в:
Nick Misasi
2024-02-26 10:07:48 -05:00
коммит произвёл GitHub
родитель 1c0dcda801
Коммит a85ebd3f49
2 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@@ -271,6 +271,10 @@ func (a *App) DoSubscriptionRenewalCheck() {
return // Don't send renewal emails for free trials
}
if model.BillingType(subscription.BillingType) == model.BillingTypeLicensed || model.BillingType(subscription.BillingType) == model.BillingTypeInternal {
return // Don't send renewal emails for licensed or internal billing
}
sysVar, err := a.Srv().Store().System().GetByName(model.CloudRenewalEmail)
if err != nil {
// We only care about the error if it wasn't a not found error

Просмотреть файл

@@ -30,6 +30,13 @@ const (
BillingSchemeSalesServe = BillingScheme("sales_serve")
)
type BillingType string
const (
BillingTypeLicensed = BillingType("licensed")
BillingTypeInternal = BillingType("internal")
)
type RecurringInterval string
const (