Skip to content

Commit 1b3f510

Browse files
committed
no update if not updating
1 parent b2e6afa commit 1b3f510

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
@@ -567,7 +567,7 @@ def track_script_progress(script)
567567
end
568568

569569
# update_all bypasses validations/transactions/etc
570-
UserScript.where(id: user_script.id).update_all(update)
570+
UserScript.where(id: user_script.id).update_all(update) unless update.empty?
571571
end
572572
end
573573

0 commit comments

Comments
 (0)