summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/QueueService.ts
diff options
context:
space:
mode:
authorAcid Chicken (硫酸鶏) <root@acid-chicken.com>2023-07-21 10:07:03 +0000
committerGitHub <noreply@github.com>2023-07-21 10:07:03 +0000
commitc9b9db13c7203f8065e232a10a4635619d8de72a (patch)
tree7c46602103c401a4ffca0f7a9bac0b456b43e0da /packages/backend/src/core/QueueService.ts
parentenhance: 自動でたたまれる機能が返信先や引用RNにも適用さ... (diff)
downloadsharkey-c9b9db13c7203f8065e232a10a4635619d8de72a.tar.gz
sharkey-c9b9db13c7203f8065e232a10a4635619d8de72a.tar.bz2
sharkey-c9b9db13c7203f8065e232a10a4635619d8de72a.zip
refactor: avoid redundant method chain
Diffstat (limited to 'packages/backend/src/core/QueueService.ts')
-rw-r--r--packages/backend/src/core/QueueService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/QueueService.ts b/packages/backend/src/core/QueueService.ts
index d0d4f802ee..546b4cee1b 100644
--- a/packages/backend/src/core/QueueService.ts
+++ b/packages/backend/src/core/QueueService.ts
@@ -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,