Skip to content

Commit

Permalink
Fix default config resetting for each instance
Browse files Browse the repository at this point in the history
  • Loading branch information
jstayton committed Jul 24, 2019
1 parent b657603 commit ddcd0c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ const KnexAdapter = require('./adapters/knex')

class Config {
constructor(config) {
this.constructor.defaults = this.constructor.DEFAULTS

this.set(config)
}

Expand All @@ -17,7 +15,6 @@ class Config {

static set defaults(defaults) {
this._defaults = {
...this.DEFAULTS,
...this._defaults,
...defaults,
}
Expand All @@ -44,4 +41,6 @@ class Config {
}
}

Config.defaults = Config.DEFAULTS

module.exports = Config

0 comments on commit ddcd0c8

Please sign in to comment.