Update email_worker.rb

This commit is contained in:
2017-01-27 12:01:53 -05:00
committed by GitHub
parent fdc59feb13
commit d546eb026f

View File

@@ -11,7 +11,12 @@
# This sidekiq worker class will handle emailing weekly time reports
class EmailWorker
include Sidekiq::Worker
def perform(name, count)
# do something
def perform(email, count)
# email something
end
every :sunday do # Many shortcuts available: :hour, :day, :month, :year, :reboot
runner "EmailWorker.perform_async"
end
end