Fix notifications in user pre save hook (#10348)

This commit is contained in:
Matteo Pagliazzi
2018-05-09 19:19:08 +02:00
committed by GitHub
parent a8655d923a
commit 042ac6ac73
2 changed files with 32 additions and 27 deletions

View File

@@ -597,6 +597,7 @@ let schema = new Schema({
type: {type: String},
}],
}, {
skipVersioning: { notifications: true },
strict: true,
minimize: false, // So empty objects are returned
});