diff options
Diffstat (limited to 'app/models/event.rb')
-rw-r--r-- | app/models/event.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/event.rb b/app/models/event.rb index 409bc66c66c..a8cf2e2dfb0 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -354,7 +354,7 @@ class Event < ApplicationRecord # hence we add the extra WHERE clause for last_activity_at. Project.unscoped.where(id: project_id) .where('last_activity_at <= ?', RESET_PROJECT_ACTIVITY_INTERVAL.ago) - .update_all(last_activity_at: created_at) + .touch_all(:last_activity_at, time: created_at) # rubocop: disable Rails/SkipsModelValidations end def authored_by?(user) @@ -430,7 +430,7 @@ class Event < ApplicationRecord def set_last_repository_updated_at Project.unscoped.where(id: project_id) .where("last_repository_updated_at < ? OR last_repository_updated_at IS NULL", REPOSITORY_UPDATED_AT_INTERVAL.ago) - .update_all(last_repository_updated_at: created_at) + .touch_all(:last_repository_updated_at, time: created_at) # rubocop: disable Rails/SkipsModelValidations end def design_action_names |