Skip to content

Commit 66ff6be

Browse files
committed
Remove un-needed native Mongoose promises.
1 parent cd8306a commit 66ff6be

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: models.js

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ const mongoose = require('mongoose')
44
// Connect to the local MongoDB database named “testdb”
55
mongoose.connect('mongodb://localhost/testdb')
66

7-
// Use real promises
8-
mongoose.Promise = global.Promise
9-
107
// Create a Group schema to be stored in the MongoDB database
118
const GroupSchema = new mongoose.Schema({
129
_id: String,

0 commit comments

Comments
 (0)