Skip to content

Commit

Permalink
Represent numbers by strings in instance activity API (#6198)
Browse files Browse the repository at this point in the history
Fixes #6197.
  • Loading branch information
TheKinrar authored and Gargron committed Jan 5, 2018
1 parent 8d51ce4 commit 95bd85d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/api/v1/instances/activity_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def activity

weeks << {
week: week.to_time.to_i.to_s,
statuses: Redis.current.get("activity:statuses:local:#{week_id}") || 0,
logins: Redis.current.pfcount("activity:logins:#{week_id}"),
registrations: Redis.current.get("activity:accounts:local:#{week_id}") || 0,
statuses: Redis.current.get("activity:statuses:local:#{week_id}") || '0',
logins: Redis.current.pfcount("activity:logins:#{week_id}").to_s,
registrations: Redis.current.get("activity:accounts:local:#{week_id}") || '0',
}
end

Expand Down

0 comments on commit 95bd85d

Please sign in to comment.