Răsfoiți Sursa

fix conditional branch in inAppNotificationPaginateResult.docs.forEach

WNomunomu 2 ani în urmă
părinte
comite
f05e4383f5
1 a modificat fișierele cu 0 adăugiri și 3 ștergeri
  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);