summaryrefslogtreecommitdiff
path: root/app/services/users/activity_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/users/activity_service.rb')
-rw-r--r--app/services/users/activity_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/users/activity_service.rb b/app/services/users/activity_service.rb
index ab532a1fdcf..5803404c3c8 100644
--- a/app/services/users/activity_service.rb
+++ b/app/services/users/activity_service.rb
@@ -14,7 +14,7 @@ module Users
private
def record_activity
- Gitlab::UserActivities.record(@author.id)
+ Gitlab::UserActivities.record(@author.id) if Gitlab::Database.read_write?
Rails.logger.debug("Recorded activity: #{@activity} for User ID: #{@author.id} (username: #{@author.username})")
end