Get the first content

This commit is contained in:
2023-02-03 11:36:45 +11:00
parent 496a57abbc
commit 548dd1cbee

View File

@@ -9,7 +9,7 @@ module Adamantium
post = post_repo.fetch!(slug) post = post_repo.fetch!(slug)
if params.key? :replace if params.key? :replace
post_repo.update(post.id, {content: markdown.call(content: params[:replace][:content])}) post_repo.update(post.id, {content: markdown.call(content: params[:replace][:content].first)})
end end
if params.key? :add if params.key? :add