blob: c97a7c077436753496f6b2c7c8b55319386ee72a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
# 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: :high
def perform(service_id, opts)
service = Service.find_by_id(service_id)
opts = ActiveSupport::HashWithIndifferentAccess.new(opts)
service.delete_from_service(opts)
end
end
end
|