Add comments for the subscriptionHistoryEvent call (#21946)

Этот коммит содержится в:
emmyni
2022-12-22 15:33:04 -05:00
коммит произвёл GitHub
родитель f8b6b6b0ed
Коммит 7a8b09c242

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

@@ -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 {