Remove unused var

This commit is contained in:
Max Wofford
2025-02-22 23:23:32 -05:00
parent 4720cd7a74
commit 61dd5153fd

View File

@@ -11,8 +11,6 @@ class SailorsLogPollForChangesJob < ApplicationJob
# get all projects for the user
projects = Heartbeat.today.where(user_id: log.slack_uid).distinct.pluck(:project)
new_notification = []
projects.each do |project|
new_project_time = Heartbeat.where(user_id: log.slack_uid, project: project).duration_seconds
if new_project_time > (log.projects_summary[project] || 0) + 1.hour