From b77e7361fcf97fa17b15ec023869a3f3d28398b4 Mon Sep 17 00:00:00 2001 From: riku6460 <17585784+riku6460@users.noreply.github.com> Date: Thu, 6 Jul 2023 19:13:39 +0900 Subject: [PATCH] =?UTF-8?q?deliverMany=20=E3=81=AB=20content=20=E3=81=AE?= =?UTF-8?q?=20null=20=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=20(#99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/QueueService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/core/QueueService.ts b/packages/backend/src/core/QueueService.ts index cd2019548199..13d9d7123338 100644 --- a/packages/backend/src/core/QueueService.ts +++ b/packages/backend/src/core/QueueService.ts @@ -62,6 +62,8 @@ export class QueueService { */ @bindThis public async deliverMany(user: ThinUser, content: IActivity | null, inboxes: Map) { + if (content == null) return null; + const opts = { attempts: this.config.deliverJobMaxAttempts ?? 12, timeout: 1 * 60 * 1000, // 1min