Skip to content

Commit

Permalink
πŸ› do not modify database path
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Aug 24, 2024
1 parent 0850526 commit cbba777
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ class Client_Firebird extends Client {
}

if (!customConfig.connection.database) {
throw new Error('Database path is missing!')
}
if (customConfig.connection.database[0] !== '/') {
customConfig.connection.database = `/${customConfig.connection.database}`
throw new Error('Database path/alias is missing!')
}

super(customConfig, ...args);
Expand Down

1 comment on commit cbba777

@Tomas2D
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ref: #371

Please sign in to comment.