Skip to content

Commit

Permalink
add missing key and value for news article URL
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeCloud committed Dec 11, 2023
1 parent 32c56e0 commit ed5baf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/news_articles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def create
news_article = params[:news_article]
persisted_news_article = NewsArticle.create(headline: news_article[:headline], effective_date: news_article[:effective_date],
body: news_article[:body], priority: news_article[:priority],
expiration_date: news_article[:expiraton_date])
expiration_date: news_article[:expiraton_date], url: news_article[:url])
render status: :created, json: NewsArticlePresenter.present(persisted_news_article)
end

Expand Down

0 comments on commit ed5baf0

Please sign in to comment.