Class: Workers::DeletePostFromService

Inherits:
Base
  • Object
show all
Defined in:
app/workers/delete_post_from_service.rb

Instance Method Summary collapse

Methods inherited from Base

#suppress_annoying_errors

Instance Method Details

#perform(service_id, post_id) ⇒ Object


9
10
11
12
13
# File 'app/workers/delete_post_from_service.rb', line 9

def perform(service_id, post_id)
  service = Service.find_by_id(service_id)
  post = Post.find_by_id(post_id)
  service.delete_post(post)
end