Compare commits
No commits in common. "3d877bc1c97330b562e63743aafceda44016c2c0" and "395c9ed818a25f2e3bdfb3660007e7a23cabc1f9" have entirely different histories.
3d877bc1c9
...
395c9ed818
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@navy.gif/wrappers",
|
"name": "@navy.gif/wrappers",
|
||||||
"version": "1.5.12",
|
"version": "1.5.10",
|
||||||
"description": "Various wrapper classes I use in my projects",
|
"description": "Various wrapper classes I use in my projects",
|
||||||
"repository": "https://git.corgi.wtf/Navy.gif/wrappers.git",
|
"repository": "https://git.corgi.wtf/Navy.gif/wrappers.git",
|
||||||
"author": "Navy.gif",
|
"author": "Navy.gif",
|
||||||
|
@ -416,8 +416,6 @@ class MariaDB
|
|||||||
if (!this.ready)
|
if (!this.ready)
|
||||||
return Promise.reject(new Error('MariaDB not ready'));
|
return Promise.reject(new Error('MariaDB not ready'));
|
||||||
|
|
||||||
query = query.trim();
|
|
||||||
|
|
||||||
let batch = false;
|
let batch = false;
|
||||||
if (values && typeof values.some === 'function')
|
if (values && typeof values.some === 'function')
|
||||||
batch = values.some(val => val instanceof Array);
|
batch = values.some(val => val instanceof Array);
|
||||||
|
@ -50,7 +50,6 @@ class MongoDB
|
|||||||
#config: MongoOptions;
|
#config: MongoOptions;
|
||||||
#logger: ILogger;
|
#logger: ILogger;
|
||||||
#URI: string;
|
#URI: string;
|
||||||
#load: boolean;
|
|
||||||
|
|
||||||
#db: Db | null;
|
#db: Db | null;
|
||||||
#_client: MongoClient;
|
#_client: MongoClient;
|
||||||
@ -70,7 +69,6 @@ class MongoDB
|
|||||||
this.#config = config;
|
this.#config = config;
|
||||||
this.#db = null; // DB connection
|
this.#db = null; // DB connection
|
||||||
this.#_database = database; // Which database to connect to
|
this.#_database = database; // Which database to connect to
|
||||||
this.#load = config.load ?? true;
|
|
||||||
|
|
||||||
this.#logger = server.createLogger(this, config.loggerOptions);
|
this.#logger = server.createLogger(this, config.loggerOptions);
|
||||||
|
|
||||||
@ -123,7 +121,7 @@ class MongoDB
|
|||||||
async init ()
|
async init ()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!this.#load)
|
if (!this.#config.load)
|
||||||
return this.#logger.info('Not loading MongoDB');
|
return this.#logger.info('Not loading MongoDB');
|
||||||
|
|
||||||
if (this.#db)
|
if (this.#db)
|
||||||
|
Loading…
Reference in New Issue
Block a user