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,21 @@
# frozen_string_literal: true
module Admin
module Actions
module Trips
class Update < Admin::Action
include Deps["commands.trips.update"]
def handle(req, res)
id = req.params[:id]
trip = req.params[:trip]
update.call(id: id, trip: trip)
res.redirect_to "/admin/trips/#{id}"
end
end
end
end
end