Skip to content

Commit

Permalink
fix: fix __mongoose refer (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtyjty99999 authored and popomore committed Mar 21, 2018
1 parent 0b85466 commit b281b15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/mongoose.js
Expand Up @@ -33,6 +33,9 @@ module.exports = app => {
}

app.mongoose = mongoose;
/* deprecated, next primary version remove */
app.__mongoose = mongoose;

app.mongoose.loadModel = () => loadModelToApp(app);

if (loadModel) {
Expand Down

0 comments on commit b281b15

Please sign in to comment.