Fix params

This commit is contained in:
2023-02-03 11:33:51 +11:00
parent d97da75d18
commit 496a57abbc

View File

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