From f03502a0c13e7e22f24868110d1fbd9832cd6859 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Fri, 3 Feb 2023 11:28:24 +1100 Subject: [PATCH] Fix typo --- app/commands/posts/update.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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