Files
adamantium/app/commands/posts/delete.rb
2023-01-27 22:55:09 +11:00

15 lines
279 B
Ruby

module Adamantium
module Commands
module Posts
class Delete < Command
include Deps["repos.post_repo"]
def call(params:)
slug = URI(params[:url]).path.split("/").last
post_repo.delete!(slug)
end
end
end
end
end