Commit 0bc39485 authored by Sean McGivern's avatar Sean McGivern

Always include recorded_at in usage ping

parent 7373b370
...@@ -67,10 +67,13 @@ module Gitlab ...@@ -67,10 +67,13 @@ module Gitlab
end end
def license_usage_data def license_usage_data
usage_data = { uuid: current_application_settings.uuid, usage_data = {
version: Gitlab::VERSION, uuid: current_application_settings.uuid,
active_user_count: User.active.count, version: Gitlab::VERSION,
mattermost_enabled: Gitlab.config.mattermost.enabled } active_user_count: User.active.count,
recorded_at: Time.now,
mattermost_enabled: Gitlab.config.mattermost.enabled
}
license = ::License.current license = ::License.current
...@@ -82,7 +85,6 @@ module Gitlab ...@@ -82,7 +85,6 @@ module Gitlab
usage_data[:license_starts_at] = license.starts_at usage_data[:license_starts_at] = license.starts_at
usage_data[:license_expires_at] = license.expires_at usage_data[:license_expires_at] = license.expires_at
usage_data[:license_add_ons] = license.add_ons usage_data[:license_add_ons] = license.add_ons
usage_data[:recorded_at] = Time.now
end end
usage_data usage_data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment