An Id must be sended to queue

This commit is contained in:
Andrew8xx8 2013-02-21 14:04:06 +04:00
parent 99760edc75
commit c77730dd71

View file

@ -12,7 +12,7 @@ class SystemHooksService
end
def self.async_execute_hook(hook, data)
Sidekiq::Client.enqueue(SystemHookWorker, hook, data)
Sidekiq::Client.enqueue(SystemHookWorker, hook.id, data)
end
def self.build_event_data(model, event)