Skip to content

Commit

Permalink
feat: add cleaned event
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Aug 25, 2019
1 parent 45be9f3 commit c544775
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/classes/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ export class Queue extends QueueGetters {
Date.now() - grace,
limit,
);

this.emit('cleaned', jobs, type);
return jobs;
}
}

0 comments on commit c544775

Please sign in to comment.