Skip to content

Commit

Permalink
feat(update): minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Jun 28, 2024
1 parent b027f13 commit 6d8aa92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PrismaQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ export class PrismaQueue<
await waitFor(pollInterval);
}

// Alias for enqueue
public add = this.enqueue;

public async enqueue(
payloadOrFunction: T | JobCreator<T>,
options: EnqueueOptions = {},
Expand Down

0 comments on commit 6d8aa92

Please sign in to comment.