Ability to remove posts from trips
This commit is contained in:
15
slices/admin/actions/trips/remove_post.rb
Normal file
15
slices/admin/actions/trips/remove_post.rb
Normal 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
|
Reference in New Issue
Block a user