diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-07-15 01:59:24 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-07-15 01:59:24 +0900 |
| commit | f338fa552ef5d3dc4cd93a25f4fb6de66766e74d (patch) | |
| tree | 6ff91e88e018997a5088cc7af85432098dfd155b /src/db | |
| parent | Update log message (diff) | |
| download | sharkey-f338fa552ef5d3dc4cd93a25f4fb6de66766e74d.tar.gz sharkey-f338fa552ef5d3dc4cd93a25f4fb6de66766e74d.tar.bz2 sharkey-f338fa552ef5d3dc4cd93a25f4fb6de66766e74d.zip | |
Not cast to any
Diffstat (limited to 'src/db')
| -rw-r--r-- | src/db/mongodb.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/mongodb.ts b/src/db/mongodb.ts index 0df87ea3a4..6a90343be7 100644 --- a/src/db/mongodb.ts +++ b/src/db/mongodb.ts @@ -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: Error, client: any) => { + mongodb.MongoClient.connect(uri, (e: Error, client: any) => { if (e) return reject(e); resolve(client.db(config.mongodb.db)); }); |