Skip to content

Commit

Permalink
refine naming
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed Jan 23, 2024
1 parent d4ab8e6 commit 00c0df9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/database/src/database-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ export class DatabaseManager {
* Returns the configuration for the given `connectionName`.
*/
protected configuration (connectionName: string): Knex.Config | string {
const connection = this.config.connections[connectionName]
const connectionConfiguration = this.config.connections[connectionName]

if (!connection) {
if (!connectionConfiguration) {
throw new Error(`Database connection "${connectionName}" is not configured.`)
}

return connection
return connectionConfiguration
}

/**
Expand Down

0 comments on commit 00c0df9

Please sign in to comment.