Not cast to any

This commit is contained in:
Aya Morisawa 2018-07-15 01:59:24 +09:00
parent d7bd5a5cd1
commit 6cba391ae6

View file

@ -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));
});