mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Remove redundant timeout declarations
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
class Hackatime::Heartbeat < HackatimeRecord
|
||||
include Heartbeatable
|
||||
|
||||
heartbeat_timeout_duration 2.minutes
|
||||
|
||||
def self.cached_recent_count
|
||||
Rails.cache.fetch("heartbeats_recent_count", expires_in: 5.minutes) do
|
||||
recent.size
|
||||
|
||||
@@ -3,8 +3,6 @@ class Heartbeat < ApplicationRecord
|
||||
|
||||
include Heartbeatable
|
||||
|
||||
heartbeat_timeout_duration 2.minutes
|
||||
|
||||
scope :today, -> { where(time: Time.current.beginning_of_day..Time.current.end_of_day) }
|
||||
|
||||
enum :source_type, {
|
||||
|
||||
Reference in New Issue
Block a user