Ability to remove posts from trips
This commit is contained in:
@@ -2,6 +2,10 @@ module Admin
|
||||
module Repos
|
||||
class PostTripRepo < Adamantium::Repo[:post_trips]
|
||||
commands :create
|
||||
|
||||
def remove(trip_id:, post_id:)
|
||||
post_trips.where(trip_id: trip_id, post_id: post_id).delete
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user