Improve merge on update

This commit is contained in:
John Lyon-Smith
2018-05-09 15:32:53 -07:00
parent 57355088f0
commit d087da2ce7
8 changed files with 40 additions and 58 deletions

View File

@@ -1,7 +1,7 @@
import mongoose from "mongoose"
import mongodb from "mongodb"
import Grid from "gridfs-stream"
import merge from "mongoose-merge-plugin"
import mergePlugin from "mongoose-doc-merge"
import autobind from "autobind-decorator"
import * as Schemas from "./schemas"
import util from "util"
@@ -9,7 +9,7 @@ import util from "util"
@autobind
export class DB {
constructor() {
mongoose.plugin(merge)
mongoose.plugin(mergePlugin)
}
async connect(mongoUri, isProduction) {