diff --git a/lib/connection.js b/lib/connection.js index 1b1d6bdff0..09d2d70089 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -68,7 +68,7 @@ function Connection(base) { this.models = {}; this.config = {}; this.replica = false; - this.options = null; + this.options = Object.assign({}, base?.options); this.otherDbs = []; // FIXME: To be replaced with relatedDbs this.relatedDbs = {}; // Hashmap of other dbs that share underlying connection this.states = STATES;