@resolveio/server-lib 5.2.32 → 5.2.33

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.
@@ -645,7 +645,7 @@ var SubscriptionManager = /** @class */ (function () {
645
645
  if (!sub.collections.includes(oplog.collection)) return [3 /*break*/, 16];
646
646
  if (!sub.preSubscriptionData) return [3 /*break*/, 5];
647
647
  if (!that._publications[sub.publication].fetchFunction(oplog.doc, sub.preSubscriptionData)) return [3 /*break*/, 5];
648
- if (!!uniquePubs.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); }).length) return [3 /*break*/, 4];
648
+ if (!!uniquePubs.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData) && JSON.stringify(oplog) === JSON.stringify(a.oplog); }).length) return [3 /*break*/, 4];
649
649
  if (!!sub.clients.length) return [3 /*break*/, 2];
650
650
  that._subscriptions.splice(j, 1);
651
651
  return [4 /*yield*/, active_subscription_collection_1.ActiveSubscriptions.deleteOne({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "5.2.32",
3
+ "version": "5.2.33",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {