Re-introduce application_id
in ScheduledStatusSerializer
(#33505)
This commit is contained in:
parent
51a92427ce
commit
91c75a6361
2 changed files with 1 additions and 5 deletions
|
@ -8,8 +8,4 @@ class REST::ScheduledStatusSerializer < ActiveModel::Serializer
|
|||
def id
|
||||
object.id.to_s
|
||||
end
|
||||
|
||||
def params
|
||||
object.params.without('application_id')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -17,7 +17,7 @@ RSpec.describe REST::ScheduledStatusSerializer do
|
|||
expect(subject.deep_symbolize_keys)
|
||||
.to include(
|
||||
scheduled_at: be_a(String).and(match_api_datetime_format),
|
||||
params: not_include(:application_id)
|
||||
params: include(:application_id)
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue