Update trips
This commit is contained in:
16
slices/admin/commands/trips/update.rb
Normal file
16
slices/admin/commands/trips/update.rb
Normal 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
|
Reference in New Issue
Block a user