@resolveio/server-lib 5.0.3 → 5.0.4
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.
|
@@ -676,6 +676,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
676
676
|
}); }, 500);
|
|
677
677
|
};
|
|
678
678
|
SubscriptionManager.prototype.resendPubsForDelete = function (collection) {
|
|
679
|
+
var _this = this;
|
|
679
680
|
var that = this;
|
|
680
681
|
that._subscriptions.filter(function (a) { return a.collections.includes(collection); }).forEach(function (sub) {
|
|
681
682
|
if (that._publications[sub.publication].ws_specific) {
|
|
@@ -688,6 +689,9 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
688
689
|
});
|
|
689
690
|
}
|
|
690
691
|
else {
|
|
692
|
+
if (_this._subCache.some(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); })) {
|
|
693
|
+
_this._subCache.splice(_this._subCache.findIndex(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); }), 1);
|
|
694
|
+
}
|
|
691
695
|
that.sendPubData(sub, 'delete', collection);
|
|
692
696
|
}
|
|
693
697
|
});
|