Skip to content

Commit 3a5a0c4

Browse files
committed
fix: ensure locked at is processed as date
1 parent ed18f31 commit 3a5a0c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JobDbRepository.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export class JobDbRepository {
248248
{ _id: job.attrs._id },
249249
{
250250
$set: {
251-
lockedAt: job.attrs.lockedAt,
251+
lockedAt: (job.attrs.lockedAt && new Date(job.attrs.lockedAt)) || undefined,
252252
nextRunAt: (job.attrs.nextRunAt && new Date(job.attrs.nextRunAt)) || undefined,
253253
lastRunAt: (job.attrs.lastRunAt && new Date(job.attrs.lastRunAt)) || undefined,
254254
progress: job.attrs.progress,

0 commit comments

Comments
 (0)