Files
adamantium/slices/admin/commands/trips/add_post.rb
2023-05-09 21:52:04 +10:00

17 lines
317 B
Ruby

module Admin
module Commands
module Trips
class AddPost
include Dry::Monads[:result]
include Deps["repos.post_trip_repo"]
def call(trip_id:, post_id:)
post_trip_repo.create(trip_id: trip_id, post_id: post_id)
Success()
end
end
end
end
end