mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-09 12:18:52 +00:00
Merge branch 'master' into refactor-remove-unused-imports
This commit is contained in:
@@ -34,6 +34,7 @@ const app = express();
|
||||
// Connect to MongoDB
|
||||
const mongoUrl = MONGODB_URI;
|
||||
(<any>mongoose).Promise = bluebird;
|
||||
|
||||
mongoose.connect(mongoUrl, { useMongoClient: true }).then(
|
||||
() => { /** ready to use. The `mongoose.connect()` promise resolves to undefined. */ },
|
||||
).catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user