Refactor day one syndication

This commit is contained in:
2023-04-23 10:48:30 +10:00
parent f8e15b6529
commit 971e0007dd
2 changed files with 1 additions and 2 deletions

View File

@@ -18,7 +18,6 @@ module Adamantium
post_params = prepare_params(params: post) post_params = prepare_params(params: post)
created_post = post_repo.create(post_params) created_post = post_repo.create(post_params)
send_to_dayone.call(name: post[:name], content: post[:content]) if post[:category].include? "weekly"
syndicate.call(created_post.id, post) syndicate.call(created_post.id, post)
# decorated_post = Decorators::Posts::Decorator.new(created_post) # decorated_post = Decorators::Posts::Decorator.new(created_post)

View File

@@ -24,7 +24,7 @@ module Adamantium
end end
if post[:category].include? "weekly" if post[:category].include? "weekly"
send_to_dayone.call(name: post.name, content: post.content) send_to_dayone.call(name: post[:name], content: post[:content])
end end
Success() Success()