Re-introduce application_id in ScheduledStatusSerializer (#33505)
				
					
				
			This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user