summaryrefslogtreecommitdiff
path: root/app/models/event.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-13 21:08:46 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-13 21:08:46 +0000
commit8d9963a8e3ece091a98c8e96297d5229c31d7548 (patch)
tree535f3d3be801ba844431f33a712d1fc182a7637d /app/models/event.rb
parent9adada1187b920547a57b4bb406c3e3c55436bf1 (diff)
downloadgitlab-ce-8d9963a8e3ece091a98c8e96297d5229c31d7548.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/event.rb')
-rw-r--r--app/models/event.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/event.rb b/app/models/event.rb
index 8ae2f61f36d..7760be3e817 100644
--- a/app/models/event.rb
+++ b/app/models/event.rb
@@ -357,6 +357,8 @@ class Event < ApplicationRecord
Project.unscoped.where(id: project_id)
.where('last_activity_at <= ?', RESET_PROJECT_ACTIVITY_INTERVAL.ago)
.touch_all(:last_activity_at, time: created_at) # rubocop: disable Rails/SkipsModelValidations
+
+ Gitlab::InactiveProjectsDeletionWarningTracker.new(project.id).reset
end
def authored_by?(user)