Open amiram opened 7 years ago
thank you @amiram Can you provide a PR please?
This is valid for any other timestamp field or at least also promote_at
is a string instead a number.
@michelem09 my pr also fixed that. I need to fix the tests still
Yes thanks, I saw
When you create a job, created_at is a number:
const job = queue.create(type, data) job.save(() => { // job.created_at is a number }
When you get the job, it is a string: kue.Job.get(id, (job) => { // job.created_at is a string here });
Since created_at is a date number, shouldn't it be a number everywhere? It can be easily fixed with converting it to number here: https://github.com/Automattic/kue/blob/master/lib/queue/job.js#L195 Perhaps all the following values should be converted either?