batching events
This commit is contained in:
committed by
Carl-Gerhard Lindesvärd
parent
244aa3b0d3
commit
5e225b7ae6
@@ -24,7 +24,7 @@ export async function findJobByPrefix<T>(
|
||||
async function getJob(index: number) {
|
||||
if (index >= filtered.length) return null;
|
||||
|
||||
const key = filtered[index]?.replace(/^bull:events:/, '');
|
||||
const key = filtered[index]?.replace(/^bull:(\w+):/, '');
|
||||
// return new Promise((resolve) => )
|
||||
if (key) {
|
||||
const job = await queue.getJob(key);
|
||||
|
||||
Reference in New Issue
Block a user