feat: check also waiting
This commit is contained in:
parent
00fd1512c5
commit
85d015f349
|
|
@ -19,9 +19,11 @@ export class CheckMissingQueues {
|
|||
id: p.id,
|
||||
publishDate: p.publishDate,
|
||||
isJob:
|
||||
(await this._workerServiceProducer
|
||||
.getQueue('post')
|
||||
.getJobState(p.id)) === 'delayed',
|
||||
['delayed', 'waiting'].indexOf(
|
||||
await this._workerServiceProducer
|
||||
.getQueue('post')
|
||||
.getJobState(p.id)
|
||||
) > -1,
|
||||
}))
|
||||
)
|
||||
).filter((p) => !p.isJob);
|
||||
|
|
|
|||
|
|
@ -18,9 +18,11 @@ export class PostNowPendingQueues {
|
|||
id: p.id,
|
||||
publishDate: p.publishDate,
|
||||
isJob:
|
||||
(await this._workerServiceProducer
|
||||
.getQueue('post')
|
||||
.getJobState(p.id)) === 'delayed',
|
||||
['delayed', 'waiting'].indexOf(
|
||||
await this._workerServiceProducer
|
||||
.getQueue('post')
|
||||
.getJobState(p.id)
|
||||
) > -1,
|
||||
}))
|
||||
)
|
||||
).filter((p) => !p.isJob);
|
||||
|
|
|
|||
Loading…
Reference in New Issue