@resolveio/server-lib 2.0.5 → 2.0.6

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.
@@ -353,11 +353,6 @@ var SubscriptionManager = /** @class */ (function () {
353
353
  if (nsArray[2]) {
354
354
  collection += '.' + nsArray[2];
355
355
  }
356
- _this._oplogQueue.push({
357
- type: 'insert',
358
- collection: collection,
359
- doc: doc.o
360
- });
361
356
  if (collection === 'cron-jobs') {
362
357
  _this._mainServer.getCronManager().checkCronJobsForUpdates();
363
358
  }
@@ -370,6 +365,13 @@ var SubscriptionManager = /** @class */ (function () {
370
365
  else if (collection === 'support-tickets') {
371
366
  _this._mainServer.getMethodManager().callMethodInternal('sendSupportTicketEmail', doc.o._id);
372
367
  }
368
+ else {
369
+ _this._oplogQueue.push({
370
+ type: 'insert',
371
+ collection: collection,
372
+ doc: doc.o
373
+ });
374
+ }
373
375
  });
374
376
  oplog.on('update', function (doc) {
375
377
  var nsArray = doc.ns.split('.');
@@ -378,14 +380,16 @@ var SubscriptionManager = /** @class */ (function () {
378
380
  collection += '.' + nsArray[2];
379
381
  }
380
382
  doc.o['_id'] = doc.o2['_id'];
381
- _this._oplogQueue.push({
382
- type: 'update',
383
- collection: collection,
384
- doc: doc.o
385
- });
386
383
  if (collection === 'cron-jobs') {
387
384
  _this._mainServer.getCronManager().checkCronJobsForUpdates();
388
385
  }
386
+ else {
387
+ _this._oplogQueue.push({
388
+ type: 'update',
389
+ collection: collection,
390
+ doc: doc.o
391
+ });
392
+ }
389
393
  });
390
394
  oplog.on('delete', function (doc) {
391
395
  var nsArray = doc.ns.split('.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {