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,16 @@
module Admin
module Commands
module Trips
class RemovePost
include Dry::Monads[:result]
include Deps["repos.post_trip_repo"]
def call(trip_id:, post_id:)
post_trip_repo.remove(trip_id: trip_id, post_id: post_id)
Success()
end
end
end
end
end