@resolveio/server-lib 4.2.0-newrole → 4.2.1-newrole

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.
@@ -575,7 +575,7 @@ var SubscriptionManager = /** @class */ (function () {
575
575
  return [4 /*yield*/, that._publications[sub.publication].preFunction(sub.subscriptionData)];
576
576
  case 1:
577
577
  _a.preSubscriptionData = _c.sent();
578
- if (that._publications[sub.publication].fetchFunction(document, sub.preSubscriptionData)) {
578
+ if (that._publications[sub.publication].fetchFunction(oplog.doc, sub.preSubscriptionData)) {
579
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);
@@ -588,7 +588,7 @@ var SubscriptionManager = /** @class */ (function () {
588
588
  sub.clients.forEach(function (client) {
589
589
  var _a;
590
590
  if (that._publications[sub.publication].fetchFunction) {
591
- if ((_a = that._publications[sub.publication]).fetchFunction.apply(_a, [document, client.id_user].concat(sub.subscriptionData))) {
591
+ if ((_a = that._publications[sub.publication]).fetchFunction.apply(_a, [oplog.doc, client.id_user].concat(sub.subscriptionData))) {
592
592
  if (!uniquePubs_1.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); })[0]) {
593
593
  uniquePubs_1.push(sub);
594
594
  uniqueOplog_1.push(oplog);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "4.2.0-newrole",
3
+ "version": "4.2.1-newrole",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {