From 22b30a4409d51ce9d9d78208a9a58eba36bdcca9 Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Sat, 7 Dec 2019 15:03:42 +0200 Subject: [PATCH] fix(subscriptions): disable notification limit --- functions/src/Subscriptions.service.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/functions/src/Subscriptions.service.js b/functions/src/Subscriptions.service.js index 28d0bea..34182e1 100644 --- a/functions/src/Subscriptions.service.js +++ b/functions/src/Subscriptions.service.js @@ -161,13 +161,13 @@ class Subscriptions { // @FIXME also consider if we actually want to limit it? or just // to have a flag whether it was ever notified or not - if ( - subscriptionItem && - subscriptionItem.notified && - subscriptionItem.notified === true - ) { - throw new Error("Subscription token already notified"); - } + // if ( + // subscriptionItem && + // subscriptionItem.notified && + // subscriptionItem.notified === true + // ) { + // throw new Error("Subscription token already notified"); + // } if (!subscriptionItem.subscription.endpoint) { throw new Error("Malformed subscription object");