Skip to content

Commit

Permalink
fix: ensure locked at is processed as date
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll committed Dec 10, 2021
1 parent ed18f31 commit 3a5a0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JobDbRepository.ts
Expand Up @@ -248,7 +248,7 @@ export class JobDbRepository {
{ _id: job.attrs._id },
{
$set: {
lockedAt: job.attrs.lockedAt,
lockedAt: (job.attrs.lockedAt && new Date(job.attrs.lockedAt)) || undefined,
nextRunAt: (job.attrs.nextRunAt && new Date(job.attrs.nextRunAt)) || undefined,
lastRunAt: (job.attrs.lastRunAt && new Date(job.attrs.lastRunAt)) || undefined,
progress: job.attrs.progress,
Expand Down

0 comments on commit 3a5a0c4

Please sign in to comment.