Re-introduce application_id in ScheduledStatusSerializer (#33505)

This commit is contained in:
Claire 2025-01-09 14:38:23 +01:00 committed by GitHub
parent 51a92427ce
commit 91c75a6361
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View file

@ -8,8 +8,4 @@ class REST::ScheduledStatusSerializer < ActiveModel::Serializer
def id def id
object.id.to_s object.id.to_s
end end
def params
object.params.without('application_id')
end
end end

View file

@ -17,7 +17,7 @@ RSpec.describe REST::ScheduledStatusSerializer do
expect(subject.deep_symbolize_keys) expect(subject.deep_symbolize_keys)
.to include( .to include(
scheduled_at: be_a(String).and(match_api_datetime_format), scheduled_at: be_a(String).and(match_api_datetime_format),
params: not_include(:application_id) params: include(:application_id)
) )
end end
end end