wip
This commit is contained in:
parent
a766faeae9
commit
80e5645a84
150 changed files with 305 additions and 2334 deletions
|
@ -27,7 +27,7 @@ const nativeDbConn = async (): Promise<mongodb.Db> => {
|
|||
if (mdb) return mdb;
|
||||
|
||||
const db = await ((): Promise<mongodb.Db> => new Promise((resolve, reject) => {
|
||||
(mongodb as any).MongoClient.connect(uri, (e, client) => {
|
||||
(mongodb as any).MongoClient.connect(uri, (e: Error, client: any) => {
|
||||
if (e) return reject(e);
|
||||
resolve(client.db(config.mongodb.db));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue