Skip to content

Commit

Permalink
fix: merging default options
Browse files Browse the repository at this point in the history
  • Loading branch information
imsitnikov committed Jun 3, 2024
1 parent 30ed535 commit a6f778e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export function initDB({
if (!connectionString) {
throw new Error('Empty connection string');
}
const mergedKnexOptions = _.merge(defaultKnexOptions, knexOptions);
const mergedDispatcherOptions = _.merge(defaultDispatcherOptions, dispatcherOptions);
const mergedKnexOptions = _.merge({}, defaultKnexOptions, knexOptions);
const mergedDispatcherOptions = _.merge({}, defaultDispatcherOptions, dispatcherOptions);

const db = new PGDispatcher({
connections: connectionString.split(','),
Expand Down

0 comments on commit a6f778e

Please sign in to comment.