Re-introduce `application_id` in `ScheduledStatusSerializer`

fixes/application_id
Claire 2025-01-08 10:36:01 +01:00
parent ee1cbda226
commit 3afc6554e9
2 changed files with 1 additions and 6 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

@ -16,8 +16,7 @@ RSpec.describe REST::ScheduledStatusSerializer do
it 'returns expected values and removes application_id from params' do it 'returns expected values and removes application_id from params' 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)
) )
end end
end end