const performanceRecord = new PerformanceRecord();
await this.orm.em.persistAndFlush(performanceRecord);
} catch (error) {
- this.handleDBError(this.storageType, error, Constants.PERFORMANCE_RECORDS_TABLE);
+ this.handleDBError(this.storageType, error as Error, Constants.PERFORMANCE_RECORDS_TABLE);
}
}
this.orm = await MikroORM.init(this.getOptions(), true);
}
} catch (error) {
- this.handleDBError(this.storageType, error);
+ this.handleDBError(this.storageType, error as Error);
}
}
this.orm = null;
}
} catch (error) {
- this.handleDBError(this.storageType, error);
+ this.handleDBError(this.storageType, error as Error);
}
}