From 04504973babed80aadb6e8f8c00c4e66359d2b5d Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Fri, 3 Feb 2023 00:16:52 +0100 Subject: [PATCH] Adjust Sentry's user context --- app/controllers/application_controller.rb | 1 - app/models/user.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index a6bb9cd8..60366b3c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -76,7 +76,6 @@ class ApplicationController < ActionController::Base Sentry.set_user( id: current_user.id, type: current_user.class.name, - username: current_user.displayname, consumer: current_user.consumer&.name ) end diff --git a/app/models/user.rb b/app/models/user.rb index 1177f999..6d51a8da 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -75,7 +75,6 @@ class User < ApplicationRecord { id:, type: self.class.name, - username: displayname, consumer: consumer.name, } end