Fix uncaught TypeError in POST `/api/v1/featured_tags` (#25072)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
pull/62/head
Daniel M Brasil 2023-05-22 14:14:54 -03:00 committed by GitHub
parent 45d98959ac
commit 785e650ab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class Api::V1::FeaturedTagsController < Api::BaseController
end end
def create def create
featured_tag = CreateFeaturedTagService.new.call(current_account, featured_tag_params[:name]) featured_tag = CreateFeaturedTagService.new.call(current_account, params.require(:name))
render json: featured_tag, serializer: REST::FeaturedTagSerializer render json: featured_tag, serializer: REST::FeaturedTagSerializer
end end