diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-29 18:09:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-29 18:09:48 +0300 |
commit | f4d51a9f71cf3d4b0874a3e1948fe3c1ea193c4d (patch) | |
tree | 7ae3da76e824c435167dd108721c0124ad2ee484 /app/services/audit_event_service.rb | |
parent | 2dedd78ef505a0ab0a379c7340a3fcba56ada663 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/audit_event_service.rb')
-rw-r--r-- | app/services/audit_event_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/audit_event_service.rb b/app/services/audit_event_service.rb index 558798c830d..2fc32c1ba85 100644 --- a/app/services/audit_event_service.rb +++ b/app/services/audit_event_service.rb @@ -111,7 +111,7 @@ class AuditEventService end def log_security_event_to_database - return if Gitlab::Database.read_only? + return if Gitlab::Database.main.read_only? event = AuditEvent.new(base_payload.merge(details: @details)) save_or_track event @@ -120,7 +120,7 @@ class AuditEventService end def log_authentication_event_to_database - return unless Gitlab::Database.read_write? && authentication_event? + return unless Gitlab::Database.main.read_write? && authentication_event? event = AuthenticationEvent.new(authentication_event_payload) save_or_track event |