Sfoglia il codice sorgente

fix conditional branch in inAppNotificationPaginateResult.docs.forEach

WNomunomu 2 anni fa
parent
commit
f05e4383f5
1 ha cambiato i file con 0 aggiunte e 3 eliminazioni
  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);