Browse Source

Fix missing irreversible in filters API, expires_in param (#7976)

pull/4/head
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
9804ec3a6d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      app/controllers/api/v1/filters_controller.rb
  2. +2
    -1
      app/serializers/rest/filter_serializer.rb

+ 1
- 1
app/controllers/api/v1/filters_controller.rb View File

@ -43,6 +43,6 @@ class Api::V1::FiltersController < Api::BaseController
end
def resource_params
params.permit(:phrase, :expires_at, :irreversible, context: [])
params.permit(:phrase, :expires_in, :irreversible, context: [])
end
end

+ 2
- 1
app/serializers/rest/filter_serializer.rb View File

@ -1,5 +1,6 @@
# frozen_string_literal: true
class REST::FilterSerializer < ActiveModel::Serializer
attributes :id, :phrase, :context, :expires_at
attributes :id, :phrase, :context, :expires_at,
:irreversible
end

Loading…
Cancel
Save