Skip to content

Commit

Permalink
Update app/models/deprecation.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Pochet <vincent@getlago.com>
  • Loading branch information
julienbourdeau and vincent-pochet authored May 23, 2024
1 parent 2689a8f commit c03b774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/deprecation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Deprecation

class << self
def report(feature_name, organization_id)
Rails.cache.write(cache_key(feature_name, organization_id, 'last_seen_at'), Time.zone.now.utc, expires_in: EXPIRE_IN)
Rails.cache.write(cache_key(feature_name, organization_id, 'last_seen_at'), Time.current, expires_in: EXPIRE_IN)
Rails.cache.increment(cache_key(feature_name, organization_id, 'count'), 1, expires_in: EXPIRE_IN)
end

Expand Down

0 comments on commit c03b774

Please sign in to comment.