Skip to content

Commit

Permalink
deliverMany に content の null チェックを追加 (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
riku6460 authored Jul 6, 2023
1 parent 53931ec commit b77e736
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/core/QueueService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export class QueueService {
*/
@bindThis
public async deliverMany(user: ThinUser, content: IActivity | null, inboxes: Map<string, boolean>) {
if (content == null) return null;

const opts = {
attempts: this.config.deliverJobMaxAttempts ?? 12,
timeout: 1 * 60 * 1000, // 1min
Expand Down

0 comments on commit b77e736

Please sign in to comment.