Update trips

This commit is contained in:
2023-05-10 20:39:22 +10:00
parent c4223aab31
commit 2fce0d3967
12 changed files with 384 additions and 63 deletions

View File

@@ -0,0 +1,16 @@
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