From c545ce5bd1ce354a5e3df6ea27d20f70ea51dd2d Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 13 Apr 2025 15:25:02 +0200 Subject: [PATCH] fixed bug in ssl --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 09898fb..c77fa32 100644 --- a/index.js +++ b/index.js @@ -48,7 +48,7 @@ class awSQL { const identifier = options.customIdentifier||`${username}@${hostname}`; // Set identifier to given identifier or [username]@[hostname] // If an instance with that identifier exists, throw error if (this.#instances[identifier]) throw new Error(`Can't create new instance with identifier "${identifier}": An instance with the same name already exists`); - const instance = new Instance(hostname, username, password, options.charset, options.defaultDatabase, options.multipleStatements, options.insecureAuth); + const instance = new Instance(hostname, username, password, options.charset, options.defaultDatabase, options.multipleStatements, options.insecureAuth, options.ssl); this.#instances[identifier] = instance; // Store instance if (options.createAsDefault) this.#default = identifier; // If this instance was created with default option set it as the default instance return instance;