Ability to remove posts from trips

This commit is contained in:
2023-06-15 20:03:10 +10:00
parent 2eaf1ddf88
commit 1f56ff0e49
7 changed files with 2344 additions and 16 deletions

View File

@@ -0,0 +1,15 @@
# frozen_string_literal: true
module Admin
module Actions
module Trips
class RemovePost < Admin::Action
include Deps["commands.trips.remove_post"]
def handle(req, res)
remove_post.call(post_id: req.params[:post_id], trip_id: req.params[:trip_id])
end
end
end
end
end