diff --git a/app/commands/posts/create_checkin.rb b/app/commands/posts/create_checkin.rb index bf6e1ac..9b79fd7 100644 --- a/app/commands/posts/create_checkin.rb +++ b/app/commands/posts/create_checkin.rb @@ -18,8 +18,6 @@ module Adamantium post_params = prepare_params(params: post) created_post = post_repo.create(post_params) - logger.info("CREATED: #{created_post.inspect}") - syndication_sources.each do |url| add_post_syndication_source.call(created_post.id, :swarm, url) end diff --git a/app/validation/posts/checkin_contract.rb b/app/validation/posts/checkin_contract.rb index e6ecaa2..9186755 100644 --- a/app/validation/posts/checkin_contract.rb +++ b/app/validation/posts/checkin_contract.rb @@ -4,7 +4,7 @@ module Adamantium class CheckinContract < Dry::Validation::Contract params do required(:name).maybe(:string) - required(:content).filled(:string) + required(:content).maybe(:string) required(:category).array(:string) required(:published_at).maybe(:time) required(:slug).filled(:string)