From 16e7bcfc5d0fca4110185884fcebe8400e23cc43 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Thu, 8 Jun 2023 21:58:16 +1000 Subject: [PATCH] Adjust order of auto-tagging and syndicating --- app/commands/posts/create_entry.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/commands/posts/create_entry.rb b/app/commands/posts/create_entry.rb index b0cdb83..4169cd2 100644 --- a/app/commands/posts/create_entry.rb +++ b/app/commands/posts/create_entry.rb @@ -19,9 +19,9 @@ module Adamantium post_params = prepare_params(params: post) created_post = post_repo.create(post_params) - syndicate.call(created_post.id, post) + auto_tag.call - auto_tag.call() + syndicate.call(created_post.id, post) # decorated_post = Decorators::Posts::Decorator.new(created_post)