Move seats data extraction closer to subscription definition.

Этот коммит содержится в:
Conor Macpherson
2022-12-20 09:43:07 -05:00
родитель 6864717504
Коммит 197262bc70

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

@@ -324,6 +324,11 @@ func requestTrueUpReview(c *Context, w http.ResponseWriter, r *http.Request) {
}
}
seats := 0
if subscription != nil {
seats = subscription.Seats
}
// Customer Info & Usage Analytics
activeUserCount, err := c.App.Srv().Store().Status().GetTotalActiveUsersCount()
if err != nil {
@@ -383,10 +388,6 @@ func requestTrueUpReview(c *Context, w http.ResponseWriter, r *http.Request) {
}
}
seats := 0
if subscription != nil {
seats = subscription.Seats
}
reviewProfile := model.TrueUpReviewProfile{
ServerId: c.App.TelemetryId(),
ServerVersion: model.CurrentVersion,