Add comments for the subscriptionHistoryEvent call (#21946)
Этот коммит содержится в:
@@ -316,7 +316,11 @@ func (a *App) createUserOrGuest(c request.CTX, user *model.User, guest bool) (*m
|
||||
}, plugin.UserHasBeenCreatedID)
|
||||
})
|
||||
|
||||
// Create/Update the subscriptionHistoryEvent
|
||||
// For cloud yearly subscriptions, if the current user count of the workspace exceeds the number of seats initially purchased
|
||||
// (plus the “threshold” of 10%), then a subscriptionHistoryEvent object would need to be created and added to the subscriptionHistory
|
||||
// table in CWS. This is then used to calculate how much the customers have to pay in addition for the extra users. If the
|
||||
// workspace is currently on a monthly plan, then this function will not do anything.
|
||||
|
||||
go func() {
|
||||
_, err := a.SendSubscriptionHistoryEvent(ruser.Id)
|
||||
if err != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user