diaspora/app/workers/delete_post_from_service.rb
2016-06-26 06:21:01 +02:00

15 lines
443 B
Ruby

# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
#
module Workers
class DeletePostFromService < Base
sidekiq_options queue: :http_service
def perform(service_id, opts)
service = Service.find_by_id(service_id)
opts = HashWithIndifferentAccess.new(opts)
service.delete_from_service(opts)
end
end
end