Fix missing irreversible in filters API, expires_in param (#7976)
This commit is contained in:
		
							parent
							
								
									249d438bc0
								
							
						
					
					
						commit
						0dbaa1badf
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -43,6 +43,6 @@ class Api::V1::FiltersController < Api::BaseController
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def resource_params
 | 
					  def resource_params
 | 
				
			||||||
    params.permit(:phrase, :expires_at, :irreversible, context: [])
 | 
					    params.permit(:phrase, :expires_in, :irreversible, context: [])
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,6 @@
 | 
				
			||||||
# frozen_string_literal: true
 | 
					# frozen_string_literal: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class REST::FilterSerializer < ActiveModel::Serializer
 | 
					class REST::FilterSerializer < ActiveModel::Serializer
 | 
				
			||||||
  attributes :id, :phrase, :context, :expires_at
 | 
					  attributes :id, :phrase, :context, :expires_at,
 | 
				
			||||||
 | 
					             :irreversible
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue