Skip to content

Commit

Permalink
Jobs patch
Browse files Browse the repository at this point in the history
As found by @jshimko
  • Loading branch information
aaronjudd committed May 4, 2017
1 parent fba8df6 commit 7a8a30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/jobs/email.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function () {
* Example usage:
* new Job(Jobs, "sendEmail", { from, to, subject, html }).save();
*/
const sendEmail = Job.processJobs(Jobs, "sendEmail", {
const sendEmail = Jobs.processJobs("sendEmail", {
pollInterval: 5 * 60 * 1000, // poll every 5 mins as a backup - see the realtime observer below
workTimeout: 2 * 60 * 1000, // fail if it takes longer than 2mins
payload: 20
Expand Down

1 comment on commit 7a8a30e

@jshimko
Copy link
Contributor

@jshimko jshimko commented on 7a8a30e May 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove this import too.

Please sign in to comment.