@resolveio/server-lib 20.14.35 → 20.14.37

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.
@@ -1187,7 +1187,8 @@ var MongoManagerCollection = /** @class */ (function () {
1187
1187
  var rbSchema = (0, common_1.buildRbLookups)(options.reportBuilderLookupTables, schemaCopy, []);
1188
1188
  this.rbSchema = (0, common_1.buildRbSchema)(rbSchema);
1189
1189
  }
1190
- var interval = setInterval(function () { return __awaiter(_this, void 0, void 0, function () {
1190
+ var retryDelayMs = 250;
1191
+ var registerWhenReady = function () { return __awaiter(_this, void 0, void 0, function () {
1191
1192
  return __generator(this, function (_a) {
1192
1193
  switch (_a.label) {
1193
1194
  case 0:
@@ -1195,12 +1196,14 @@ var MongoManagerCollection = /** @class */ (function () {
1195
1196
  return [4 /*yield*/, resolveio_server_app_1.ResolveIOServer.getMongoManager().registerCollection(this)];
1196
1197
  case 1:
1197
1198
  _a.sent();
1198
- clearInterval(interval);
1199
- _a.label = 2;
1200
- case 2: return [2 /*return*/];
1199
+ return [2 /*return*/];
1200
+ case 2:
1201
+ setTimeout(registerWhenReady, retryDelayMs);
1202
+ return [2 /*return*/];
1201
1203
  }
1202
1204
  });
1203
- }); }, 1);
1205
+ }); };
1206
+ setTimeout(registerWhenReady, retryDelayMs);
1204
1207
  };
1205
1208
  // Method to extract index name from error message
1206
1209
  MongoManagerCollection.prototype.extractIndexNameFromError = function (errorMessage) {