fix: Show a more user friendly error message if initial Db connection times out (#10682)
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user