This commit is contained in:
einhornimmond 2025-05-14 16:46:42 +02:00
parent b28ccc6d8f
commit cc491b010d

View File

@ -42,7 +42,10 @@ async function convertJsToTsInMigrations(connection: Connection): Promise<number
}
export const getDatabaseState = async (): Promise<DatabaseState> => {
const connection = await connectToDatabaseServer(CONFIG.DB_CONNECT_RETRY_COUNT, CONFIG.DB_CONNECT_RETRY_DELAY_MS)
const connection = await connectToDatabaseServer(
CONFIG.DB_CONNECT_RETRY_COUNT,
CONFIG.DB_CONNECT_RETRY_DELAY_MS,
)
if (!connection) {
return DatabaseState.NOT_CONNECTED
}