summaryrefslogtreecommitdiffstats
path: root/app/diagnostics.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-08-16 09:51:45 -0700
committerChristopher Speller <crspeller@gmail.com>2017-08-16 09:51:45 -0700
commit0ab490845aed0ce3b58cbffd8ec35be237abda1c (patch)
tree5310cce7e546f5a03f97245af473b62d382028e8 /app/diagnostics.go
parent32265df8be5d530f5b79284792afb9451464ad3a (diff)
downloadchat-0ab490845aed0ce3b58cbffd8ec35be237abda1c.tar.gz
chat-0ab490845aed0ce3b58cbffd8ec35be237abda1c.tar.bz2
chat-0ab490845aed0ce3b58cbffd8ec35be237abda1c.zip
PLT-6226 Fixing races with licensing (#7213)
* PLT-6226 Fixing races with licensing * Fixing build issue * Fixing licensing issue * removing commented code
Diffstat (limited to 'app/diagnostics.go')
-rw-r--r--app/diagnostics.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/diagnostics.go b/app/diagnostics.go
index aff223855..2eae5871d 100644
--- a/app/diagnostics.go
+++ b/app/diagnostics.go
@@ -423,17 +423,17 @@ func trackConfig() {
}
func trackLicense() {
- if utils.IsLicensed {
+ if utils.IsLicensed() {
data := map[string]interface{}{
- "customer_id": utils.License.Customer.Id,
- "license_id": utils.License.Id,
- "issued": utils.License.IssuedAt,
- "start": utils.License.StartsAt,
- "expire": utils.License.ExpiresAt,
- "users": *utils.License.Features.Users,
+ "customer_id": utils.License().Customer.Id,
+ "license_id": utils.License().Id,
+ "issued": utils.License().IssuedAt,
+ "start": utils.License().StartsAt,
+ "expire": utils.License().ExpiresAt,
+ "users": *utils.License().Features.Users,
}
- features := utils.License.Features.ToMap()
+ features := utils.License().Features.ToMap()
for featureName, featureValue := range features {
data["feature_"+featureName] = featureValue
}