msavin / SteveJobs

A simple jobs queue that just works (for Meteor.js)
Other
207 stars 35 forks source link

[SOLVED] Where do we get the docID when we schedule a job? #67

Closed ZhaopingLuo closed 5 years ago

ZhaopingLuo commented 6 years ago

I tried console.log(this.doc()); in my Jobs.register to see what we have, but it's not a function.

this.doc() - access job document

Since we use this ID everywhere, there should be some way to retrieve my new job ID, right?

msavin commented 6 years ago

Documentation error. Please try this.document._id