mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-20 00:35:22 +00:00
Update incorrectly renamed usage of heartbeat
This commit is contained in:
parent
92335d5335
commit
310c2b5b8b
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ class SailorsLogPollForChangesJob < ApplicationJob
|
|||
def perform
|
||||
puts "performing SailorsLogPollForChangesJob"
|
||||
# get all users who've coded in the last minute
|
||||
users_who_coded = Hackatime.where("created_at > ?", 1.minutes.ago)
|
||||
users_who_coded = Heartbeat.where("created_at > ?", 1.minutes.ago)
|
||||
.where(time: 1.minutes.ago..)
|
||||
.distinct.pluck(:user_id)
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ class SailorsLogPollForChangesJob < ApplicationJob
|
|||
|
||||
logs.each do |log|
|
||||
# get all projects for the user with duration
|
||||
new_project_times = Hackatime.where(user_id: log.slack_uid)
|
||||
new_project_times = Heartbeat.where(user_id: log.slack_uid)
|
||||
.group(:project)
|
||||
.duration_seconds
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue