}))
} satisfies PerformanceRecord)
} catch (error) {
- this.handleDBError(this.storageType, error as Error, Constants.PERFORMANCE_RECORDS_TABLE)
+ this.handleDBStorageError(
+ this.storageType,
+ error as Error,
+ Constants.PERFORMANCE_RECORDS_TABLE
+ )
}
}
}
}
} catch (error) {
- this.handleDBError(this.storageType, error as Error)
+ this.handleDBStorageError(this.storageType, error as Error)
}
}
delete this.orm
}
} catch (error) {
- this.handleDBError(this.storageType, error as Error)
+ this.handleDBStorageError(this.storageType, error as Error)
}
}
upsert: true
})
} catch (error) {
- this.handleDBError(StorageType.MONGO_DB, error as Error, Constants.PERFORMANCE_RECORDS_TABLE)
+ this.handleDBStorageError(
+ StorageType.MONGO_DB,
+ error as Error,
+ Constants.PERFORMANCE_RECORDS_TABLE
+ )
}
}
this.connected = true
}
} catch (error) {
- this.handleDBError(StorageType.MONGO_DB, error as Error)
+ this.handleDBStorageError(StorageType.MONGO_DB, error as Error)
}
}
this.connected = false
}
} catch (error) {
- this.handleDBError(StorageType.MONGO_DB, error as Error)
+ this.handleDBStorageError(StorageType.MONGO_DB, error as Error)
}
}
this.logPrefix = logPrefix
}
- protected handleDBError (
+ protected handleDBStorageError (
type: StorageType,
error: Error,
table?: string,