mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
Move public_activity partials to user folder (#565)
This commit is contained in:
parent
1b9fcbbb98
commit
748e25c1c4
1 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ class CreateHeartbeatActivityJob < ApplicationJob
|
|||
|
||||
# Look for future coding activity only (not past events that are already showing)
|
||||
recent_activity = PublicActivity::Activity.with_future
|
||||
.where(owner_id: user_id, trackable_type: "Heartbeat", key: "coding_session")
|
||||
.where(owner_id: user_id, trackable_type: "User", key: "user.coding_session")
|
||||
.where("created_at > ?", Time.current)
|
||||
.first
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ class CreateHeartbeatActivityJob < ApplicationJob
|
|||
PublicActivity::Activity.create!(
|
||||
trackable: user,
|
||||
owner: user,
|
||||
key: "started_working",
|
||||
key: "user.started_working",
|
||||
parameters: { project: project_name }
|
||||
)
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ class CreateHeartbeatActivityJob < ApplicationJob
|
|||
activity = PublicActivity::Activity.create!(
|
||||
trackable: user,
|
||||
owner: user,
|
||||
key: "coding_session",
|
||||
key: "user.coding_session",
|
||||
parameters: {
|
||||
project: project_name,
|
||||
started_at: started_at,
|
||||
|
|
@ -55,7 +55,7 @@ class CreateHeartbeatActivityJob < ApplicationJob
|
|||
PublicActivity::Activity.create!(
|
||||
trackable: user,
|
||||
owner: user,
|
||||
key: "first_heartbeat",
|
||||
key: "user.first_heartbeat",
|
||||
parameters: { project: project_name }
|
||||
)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue