@resolveio/server-lib 4.3.9 → 4.3.10
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.
|
@@ -591,7 +591,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
591
591
|
if (!sub.collections.includes(oplog.collection)) return [3 /*break*/, 3];
|
|
592
592
|
if (sub.preSubscriptionData) {
|
|
593
593
|
if (that._publications[sub.publication].fetchFunction(oplog.doc, sub.preSubscriptionData)) {
|
|
594
|
-
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData)
|
|
594
|
+
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); }).length) {
|
|
595
595
|
uniquePubs_1.push(sub);
|
|
596
596
|
}
|
|
597
597
|
else {
|
|
@@ -606,7 +606,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
606
606
|
case 1:
|
|
607
607
|
_b.preSubscriptionData = _c.sent();
|
|
608
608
|
if (that._publications[sub.publication].fetchFunction(document, sub.preSubscriptionData)) {
|
|
609
|
-
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication &&
|
|
609
|
+
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); }).length) {
|
|
610
610
|
uniquePubs_1.push(sub);
|
|
611
611
|
}
|
|
612
612
|
else {
|
|
@@ -621,7 +621,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
621
621
|
var _a;
|
|
622
622
|
if (that._publications[sub.publication].fetchFunction) {
|
|
623
623
|
if ((_a = that._publications[sub.publication]).fetchFunction.apply(_a, [document, client.id_user].concat(sub.subscriptionData))) {
|
|
624
|
-
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); })
|
|
624
|
+
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); }).length) {
|
|
625
625
|
uniquePubs_1.push(sub);
|
|
626
626
|
}
|
|
627
627
|
else {
|
|
@@ -634,7 +634,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
634
634
|
else {
|
|
635
635
|
if (that._publications[sub.publication].fetchFunction) {
|
|
636
636
|
if ((_a = that._publications[sub.publication]).fetchFunction.apply(_a, [document].concat(sub.subscriptionData))) {
|
|
637
|
-
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication &&
|
|
637
|
+
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); }).length) {
|
|
638
638
|
uniquePubs_1.push(sub);
|
|
639
639
|
}
|
|
640
640
|
else {
|
|
@@ -644,7 +644,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
else {
|
|
647
|
-
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication &&
|
|
647
|
+
if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); }).length) {
|
|
648
648
|
uniquePubs_1.push(sub);
|
|
649
649
|
}
|
|
650
650
|
else {
|