Skip to content

Commit

Permalink
fix(backend): deliverManyにcontentのnullチェックを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Jul 7, 2023
1 parent 0b8e0fa commit b318789
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/core/QueueService.ts
Expand Up @@ -97,6 +97,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,
backoff: {
Expand Down

0 comments on commit b318789

Please sign in to comment.