@resolveio/server-lib 4.2.2 → 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -563,7 +563,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
563
563
|
if (!sub.collections.includes(oplog.collection)) return [3 /*break*/, 3];
|
|
564
564
|
if (sub.preSubscriptionData) {
|
|
565
565
|
if (that._publications[sub.publication].fetchFunction(oplog.doc, sub.preSubscriptionData)) {
|
|
566
|
-
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData)
|
|
566
|
+
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); })[0]) {
|
|
567
567
|
uniquePubs_1.push(sub);
|
|
568
568
|
uniqueOplog_1.push(oplog);
|
|
569
569
|
}
|
|
@@ -576,7 +576,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
576
576
|
case 1:
|
|
577
577
|
_a.preSubscriptionData = _c.sent();
|
|
578
578
|
if (that._publications[sub.publication].fetchFunction(oplog.doc, sub.preSubscriptionData)) {
|
|
579
|
-
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && ((!a.subscriptionData && !sub.subscriptionData) || JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData))
|
|
579
|
+
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && ((!a.subscriptionData && !sub.subscriptionData) || JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData)); })[0]) {
|
|
580
580
|
uniquePubs_1.push(sub);
|
|
581
581
|
uniqueOplog_1.push(oplog);
|
|
582
582
|
}
|
|
@@ -600,7 +600,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
600
600
|
else {
|
|
601
601
|
if (that._publications[sub.publication].fetchFunction) {
|
|
602
602
|
if ((_b = that._publications[sub.publication]).fetchFunction.apply(_b, [oplog.doc].concat(sub.subscriptionData))) {
|
|
603
|
-
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && ((!a.subscriptionData && !sub.subscriptionData) || JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData))
|
|
603
|
+
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && ((!a.subscriptionData && !sub.subscriptionData) || JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData)); })[0]) {
|
|
604
604
|
uniquePubs_1.push(sub);
|
|
605
605
|
uniqueOplog_1.push(oplog);
|
|
606
606
|
}
|
|
@@ -608,7 +608,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
else {
|
|
611
|
-
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && ((!a.subscriptionData && !sub.subscriptionData) || JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData))
|
|
611
|
+
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && ((!a.subscriptionData && !sub.subscriptionData) || JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData)); })[0]) {
|
|
612
612
|
uniquePubs_1.push(sub);
|
|
613
613
|
uniqueOplog_1.push(oplog);
|
|
614
614
|
}
|