Skip to content

Commit

Permalink
chore(CE): Add resource link to audit logs serializer (#541)
Browse files Browse the repository at this point in the history
Co-authored-by: TivonB-AI2 <[email protected]>
  • Loading branch information
github-actions[bot] and TivonB-AI2 authored Dec 18, 2024
1 parent 39932be commit fb78dd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/app/serializers/audit_logs_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# app/serializers/audit_logs_serializer.rb
class AuditLogsSerializer < ActiveModel::Serializer
attributes :id, :user_id, :user_name, :action, :resource_type, :resource_id, :resource, :workspace_id,
:metadata, :created_at, :updated_at
attributes :id, :user_id, :user_name, :action, :resource_type, :resource_id, :resource, :resource_link,
:workspace_id, :metadata, :created_at, :updated_at

def user_name
object.user&.name
Expand Down

0 comments on commit fb78dd0

Please sign in to comment.