diff --git a/app/commands/posts/update.rb b/app/commands/posts/update.rb index 464eca4..67b215e 100644 --- a/app/commands/posts/update.rb +++ b/app/commands/posts/update.rb @@ -8,7 +8,7 @@ module Adamantium slug = URI(params[:url]).path.split("/").last post = post_repo.fetch!(slug) - if prams.key? :replace + if params.key? :replace post_repo.update(post.id, params) end