deliverMany に content の null チェックを追加 (#99)

This commit is contained in:
riku6460 2023-07-06 19:13:39 +09:00 committed by GitHub
parent 53931ec59a
commit b77e7361fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,8 @@ export class QueueService {
*/ */
@bindThis @bindThis
public async deliverMany(user: ThinUser, content: IActivity | null, inboxes: Map<string, boolean>) { public async deliverMany(user: ThinUser, content: IActivity | null, inboxes: Map<string, boolean>) {
if (content == null) return null;
const opts = { const opts = {
attempts: this.config.deliverJobMaxAttempts ?? 12, attempts: this.config.deliverJobMaxAttempts ?? 12,
timeout: 1 * 60 * 1000, // 1min timeout: 1 * 60 * 1000, // 1min