@resolveio/server-lib 12.0.26 → 12.0.27

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.
@@ -93,7 +93,7 @@ var MongoManager = /** @class */ (function () {
93
93
  console.log(new Date(), 'Mongo Manager', 'Mongo Queue', _this._mongoQueue.length);
94
94
  console.log(new Date(), 'Mongo Manager', 'Server Collections', _this._serverCollections.length);
95
95
  console.log(new Date(), 'Mongo Manager', 'Mongo Queue Hits', _this._debugMongoQueueHits);
96
- console.log(new Date(), 'Mongo Manager', 'Mongo Queue Collections', _this._debugMongoQueueCollections);
96
+ console.log(new Date(), 'Mongo Manager', 'Mongo Queue Collections', _this._debugMongoQueueCollections.sort(function (a, b) { return a.collection.localeCompare(b.collection) || a.function.localeCompare(b.function); }));
97
97
  console.log(new Date(), 'Mongo Manager', 'Cache Cleanup Hits', JSON.stringify(_this._debugRemoveCacheHits, null, 2));
98
98
  }
99
99
  _this._debugMongoQueueHits = 0;
@@ -146,7 +146,7 @@ var MongoManager = /** @class */ (function () {
146
146
  var _a, _b, _c;
147
147
  _this._debugMongoQueueHits += 1;
148
148
  var mongoQueue = queueArr[i];
149
- if (!_this._debugMongoQueueCollections.some(function (a) { return a.collection === mongoQueue.name_collection && a.function === mongoQueue.data_function; })) {
149
+ if (!_this._debugMongoQueueCollections.some(function (a) { return a.collection === mongoQueue.name_collection && a.function === mongoQueue.name_function; })) {
150
150
  _this._debugMongoQueueCollections.push({
151
151
  collection: mongoQueue.name_collection,
152
152
  function: mongoQueue.name_function,
@@ -154,7 +154,7 @@ var MongoManager = /** @class */ (function () {
154
154
  });
155
155
  }
156
156
  else {
157
- _this._debugMongoQueueCollections.filter(function (a) { return a.collection === mongoQueue.name_collection && a.function === mongoQueue.data_function; })[0].hits += 1;
157
+ _this._debugMongoQueueCollections.filter(function (a) { return a.collection === mongoQueue.name_collection && a.function === mongoQueue.name_function; })[0].hits += 1;
158
158
  }
159
159
  mongoQueue.running = true;
160
160
  mongoQueue.invalidateFlag = false;