From 17c4347e9881b012c08d4cc47ac58697a2b7f479 Mon Sep 17 00:00:00 2001 From: Sosthene Date: Wed, 30 Jul 2025 12:28:51 +0200 Subject: [PATCH] Fix linter error on NotificationBuilder --- src/common/notifications/NotificationBuilder.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/notifications/NotificationBuilder.ts b/src/common/notifications/NotificationBuilder.ts index e51abb68..01ddae5d 100644 --- a/src/common/notifications/NotificationBuilder.ts +++ b/src/common/notifications/NotificationBuilder.ts @@ -95,7 +95,7 @@ export default class NotificationBuilder { redirection_url: "", created_at: new Date(), updated_at: new Date(), - user: [user] || [], + user: user ? [user] : [], }); } @@ -105,7 +105,7 @@ export default class NotificationBuilder { redirection_url: "", created_at: new Date(), updated_at: new Date(), - user: [user] || [], + user: user ? [user] : [], }); }