mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Don't email licensed/internal customers about Cloud Renewals (#26268)
This commit is contained in:
parent
1c0dcda801
commit
a85ebd3f49
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user