mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-service.git
synced 2026-09-21 16:52:03 -07:00
Set mongoose's promise lib
This commit is contained in:
@@ -14,6 +14,7 @@ import { errorMiddleware } from '../src/middleware'
|
||||
const app = new Koa()
|
||||
app.keys = [config.session]
|
||||
|
||||
mongoose.Promise = global.Promise
|
||||
mongoose.connect(config.database)
|
||||
|
||||
app.use(convert(logger()))
|
||||
|
||||
Reference in New Issue
Block a user