Skip to content

Commit

Permalink
fix: not deep clone custom dialectModule option
Browse files Browse the repository at this point in the history
  • Loading branch information
JerrysShan committed Jan 16, 2024
1 parent cb8ea88 commit 066d8f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dialects/abstract/connection-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const debug = logger.debugContext('pool');
*/
class ConnectionManager {
constructor(dialect, sequelize) {
const config = _.cloneDeep(sequelize.config);
const { dialectModule, ...otherConfig } = sequelize.config;
const config = _.cloneDeep(otherConfig);

this.sequelize = sequelize;
this.config = config;
Expand Down

0 comments on commit 066d8f9

Please sign in to comment.