Skip to content

Commit b2e6afa

Browse files
committed
reduce writes for logged in users
1 parent cd5fcd1 commit b2e6afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboard/app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def track_script_progress(script)
560560

561561
update = {}
562562
update[:started_at] = time_now unless user_script.started_at
563-
update[:last_progress_at] = time_now
563+
update[:last_progress_at] = time_now unless user_script.last_progress_at
564564

565565
if !user_script.completed_at && user_script.check_completed?
566566
update[:completed_at] = time_now

0 commit comments

Comments
 (0)