fix: Show a more user friendly error message if initial Db connection times out (#10682)

This commit is contained in:
Tomi Turtiainen
2024-09-06 11:33:53 +03:00
committed by GitHub
parent 08abaf9eb2
commit 4efcbc5936
5 changed files with 53 additions and 3 deletions

View File

@@ -132,3 +132,9 @@ export function getConnectionOptions(): DataSourceOptions {
throw new ApplicationError('Database type currently not supported', { extra: { dbType } });
}
}
export function arePostgresOptions(
options: DataSourceOptions,
): options is PostgresConnectionOptions {
return options.type === 'postgres';
}