if (error) {
FileUtils.handleFileException(this.logPrefix, Constants.PERFORMANCE_RECORDS_FILETYPE, this.dbName, error);
} else {
const performanceRecords: Statistics[] = data ? JSON.parse(data) as Statistics[] : [];
performanceRecords.push(performanceStatistics);
if (error) {
FileUtils.handleFileException(this.logPrefix, Constants.PERFORMANCE_RECORDS_FILETYPE, this.dbName, error);
} else {
const performanceRecords: Statistics[] = data ? JSON.parse(data) as Statistics[] : [];
performanceRecords.push(performanceStatistics);