@resolveio/server-lib 5.1.8 → 5.1.9

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.
@@ -654,7 +654,7 @@ var SubscriptionManager = /** @class */ (function () {
654
654
  return [3 /*break*/, 5];
655
655
  case 10:
656
656
  uniquePubs.forEach(function (pub) {
657
- _this.checkPubsForChanges(pub['oplog'].collection, pub['oplog'].doc, pub['oplog'].type);
657
+ _this.checkPubsForChanges(pub['oplog'].collection, pub['oplog'].doc, pub['oplog'].type, pub.publication);
658
658
  });
659
659
  _a.label = 11;
660
660
  case 11: return [2 /*return*/];
@@ -751,14 +751,14 @@ var SubscriptionManager = /** @class */ (function () {
751
751
  // Document: Inserted/Modified/Deleted Document
752
752
  // Collection: Collection Document Lives In
753
753
  // Check to see if any pubs need to refetch due to Mongo operation
754
- SubscriptionManager.prototype.checkPubsForChanges = function (collection, document, type) {
754
+ SubscriptionManager.prototype.checkPubsForChanges = function (collection, document, type, publication) {
755
755
  return __awaiter(this, void 0, void 0, function () {
756
756
  var that, subCopy, _loop_7, this_2, i;
757
757
  return __generator(this, function (_a) {
758
758
  switch (_a.label) {
759
759
  case 0:
760
760
  that = this;
761
- subCopy = common_1.deepCopy(that._subscriptions.filter(function (a) { return a.collections.includes(collection); }));
761
+ subCopy = common_1.deepCopy(that._subscriptions.filter(function (a) { return a.publication === publication; }));
762
762
  _loop_7 = function (i) {
763
763
  var _a, _b, sub, removed, _c, _d, removed, removed, removed;
764
764
  return __generator(this, function (_e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "5.1.8",
3
+ "version": "5.1.9",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {