@resolveio/server-lib 4.4.6 → 4.4.7
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.
|
@@ -510,22 +510,16 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
510
510
|
var _this = this;
|
|
511
511
|
var that = this;
|
|
512
512
|
setInterval(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
513
|
-
var
|
|
513
|
+
var uniquePubs, uniqueOplog_1, needIds_1, _loop_3, i, i, oplog, _loop_4, j, state_1;
|
|
514
514
|
var _this = this;
|
|
515
515
|
return __generator(this, function (_a) {
|
|
516
516
|
switch (_a.label) {
|
|
517
517
|
case 0:
|
|
518
518
|
if (!this._oplogQueue.length) return [3 /*break*/, 11];
|
|
519
|
-
oplogQueue = common_1.deepCopy(this._oplogQueue);
|
|
520
519
|
this._oplogQueue = [];
|
|
521
520
|
uniquePubs = [];
|
|
522
|
-
uniqueOplog_1 =
|
|
521
|
+
uniqueOplog_1 = common_1.deepCopy(this._oplogQueue);
|
|
523
522
|
needIds_1 = {};
|
|
524
|
-
oplogQueue.forEach(function (oplog) {
|
|
525
|
-
if (!uniqueOplog_1.filter(function (a) { return JSON.stringify(a) === JSON.stringify(oplog); }).length) {
|
|
526
|
-
uniqueOplog_1.push(oplog);
|
|
527
|
-
}
|
|
528
|
-
});
|
|
529
523
|
uniqueOplog_1.forEach(function (oplog) {
|
|
530
524
|
var schemaErrors = null;
|
|
531
525
|
try {
|