Don't email licensed/internal customers about Cloud Renewals (#26268)
Этот коммит содержится в:
@@ -271,6 +271,10 @@ func (a *App) DoSubscriptionRenewalCheck() {
|
|||||||
return // Don't send renewal emails for free trials
|
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)
|
sysVar, err := a.Srv().Store().System().GetByName(model.CloudRenewalEmail)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// We only care about the error if it wasn't a not found error
|
// We only care about the error if it wasn't a not found error
|
||||||
|
|||||||
@@ -30,6 +30,13 @@ const (
|
|||||||
BillingSchemeSalesServe = BillingScheme("sales_serve")
|
BillingSchemeSalesServe = BillingScheme("sales_serve")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type BillingType string
|
||||||
|
|
||||||
|
const (
|
||||||
|
BillingTypeLicensed = BillingType("licensed")
|
||||||
|
BillingTypeInternal = BillingType("internal")
|
||||||
|
)
|
||||||
|
|
||||||
type RecurringInterval string
|
type RecurringInterval string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user