From 0915870f347eecbf5d1646fa732e2a73418960a6 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 10 Jun 2020 19:45:13 +0300 Subject: feat: use bluebird promise globally --- index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.ts') diff --git a/index.ts b/index.ts index b358fdb..6db8929 100644 --- a/index.ts +++ b/index.ts @@ -1,8 +1,8 @@ import app from './app'; import mongoose from 'mongoose'; +import Promise from 'bluebird'; - -mongoose.Promise = global.Promise; +mongoose.Promise = Promise; mongoose.connect('mongodb://localhost:27017/which', { useNewUrlParser: true }); -- cgit v1.2.3