Files
adamantium/slices/admin/commands/trips/update.rb
2023-05-10 20:39:22 +10:00

17 lines
272 B
Ruby

module Admin
module Commands
module Trips
class Update
include Dry::Monads[:result]
include Deps["repos.trip_repo"]
def call(id:, trip:)
trip_repo.update(id, trip)
Success()
end
end
end
end
end