summaryrefslogtreecommitdiff
path: root/app/services/users/last_push_event_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/users/last_push_event_service.rb')
-rw-r--r--app/services/users/last_push_event_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/users/last_push_event_service.rb b/app/services/users/last_push_event_service.rb
index a9c9497520b..b3980b8e32c 100644
--- a/app/services/users/last_push_event_service.rb
+++ b/app/services/users/last_push_event_service.rb
@@ -58,11 +58,13 @@ module Users
private
+ # rubocop: disable CodeReuse/ActiveRecord
def find_event_in_database(id)
PushEvent
.without_existing_merge_requests
.find_by(id: id)
end
+ # rubocop: enable CodeReuse/ActiveRecord
def user_cache_key
"last-push-event/#{@user.id}"