Browse Source

Fix missing cast of status and rule IDs to string (fix #19048) (#20122)

closed-social-glitch-2
trwnh 2 years ago
committed by GitHub
parent
commit
455a754081
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      app/serializers/rest/report_serializer.rb

+ 8
- 0
app/serializers/rest/report_serializer.rb View File

@ -9,4 +9,12 @@ class REST::ReportSerializer < ActiveModel::Serializer
def id
object.id.to_s
end
def status_ids
object&.status_ids&.map(&:to_s)
end
def rule_ids
object&.rule_ids&.map(&:to_s)
end
end

Loading…
Cancel
Save