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

15 lines
282 B
Ruby

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