http-request-manager 18.13.8 → 18.13.9

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.
@@ -6220,8 +6220,9 @@ class DbService extends Dexie {
6220
6220
  this.close();
6221
6221
  }
6222
6222
  this.version(nextVersion).stores(currentSchema);
6223
+ this.dbReady = this.open();
6223
6224
  try {
6224
- await this.open();
6225
+ await this.dbReady;
6225
6226
  const created = this.tables.some(t => t.name === safeTableName);
6226
6227
  if (!created) {
6227
6228
  console.error(`CRITICAL: Table ${safeTableName} was NOT created after upgrade! Tables found:`, this.tables.map(t => t.name));
@@ -6426,6 +6427,10 @@ class DatabaseManagerService extends DbService {
6426
6427
  updateTableRecords(table, records) {
6427
6428
  const tableName = this.cleanTableName(table);
6428
6429
  return this.getDatabaseTable(tableName).pipe(switchMap((tableData) => {
6430
+ if (!tableData) {
6431
+ console.warn(`updateTableRecords: Table '${tableName}' not found`);
6432
+ return EMPTY;
6433
+ }
6429
6434
  const insertRecords = records.map((record) => {
6430
6435
  const payload = { ...(record || {}) };
6431
6436
  if (payload.id === undefined || payload.id === null || payload.id === '') {