Skip to content

Commit

Permalink
refactor: avoid redundant method chain
Browse files Browse the repository at this point in the history
  • Loading branch information
acid-chicken authored Jul 21, 2023
1 parent a8cd8ed commit c9b9db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/QueueService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class QueueService {
removeOnFail: true,
};

await this.deliverQueue.addBulk(Array.from(inboxes.entries()).map(d => ({
await this.deliverQueue.addBulk(Array.from(inboxes.entries(), d => ({
name: d[0],
data: {
user,
Expand Down

0 comments on commit c9b9db1

Please sign in to comment.