Parcourir la source

fix conditional branch in inAppNotificationPaginateResult.docs.forEach

WNomunomu il y a 2 ans
Parent
commit
f05e4383f5
1 fichiers modifiés avec 0 ajouts et 3 suppressions
  1. 0 3
      apps/app/src/stores/in-app-notification.ts

+ 0 - 3
apps/app/src/stores/in-app-notification.ts

@@ -28,9 +28,6 @@ export const useSWRxInAppNotifications = (
           if (doc.targetModel === SupportedTargetModel.MODEL_USER) {
             doc.parsedSnapshot = userSerializers.parseSnapshot(doc.snapshot);
           }
-          else {
-            throw new Error(`No serializer found for targetModel: ${doc.targetModel}`);
-          }
         }
         catch (err) {
           logger.warn('Failed to parse snapshot', err);