Skip to content

Commit

Permalink
fix(enqueue): only delete own queue jobs (related to #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed May 30, 2024
1 parent 07de9bd commit 8bd8c21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PrismaQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export class PrismaQueue<
if (key && runAt) {
const { count } = await this.model.deleteMany({
where: {
queue: queueName,
key,
runAt: {
gte: new Date(),
Expand Down

0 comments on commit 8bd8c21

Please sign in to comment.