Skip to content

Commit

Permalink
version patch
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoythander committed Aug 26, 2018
1 parent 657f11c commit 208204c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/admins.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
var mongoose = require('mongoose');
// patch to support MongoDB Server v3.5+
mongoose.plugin(schema => {
schema.options.usePushEach = true;
});
var Schema = mongoose.Schema;

var adminSchema = new mongoose.Schema({
Expand Down
4 changes: 4 additions & 0 deletions models/logs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
var mongoose = require('mongoose');
// patch to support MongoDB Server v3.5+
mongoose.plugin(schema => {
schema.options.usePushEach = true;
});
var Schema = mongoose.Schema;

var logSchema = new mongoose.Schema({
Expand Down
4 changes: 4 additions & 0 deletions models/posts.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
var mongoose = require('mongoose');
// patch to support MongoDB Server v3.5+
mongoose.plugin(schema => {
schema.options.usePushEach = true;
});
var Schema = mongoose.Schema;

var postSchema = new mongoose.Schema({
Expand Down
4 changes: 4 additions & 0 deletions models/users.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
var mongoose = require('mongoose');
// patch to support MongoDB Server v3.5+
mongoose.plugin(schema => {
schema.options.usePushEach = true;
});
var Schema = mongoose.Schema;

var userSchema = new mongoose.Schema({
Expand Down

0 comments on commit 208204c

Please sign in to comment.