correcting a mistake made during linting

This commit is contained in:
Nikola Bjelo committed 2018-11-01 05:04:19 +01:00
1 parent 657c8a1a9b
commit df4dbef6d0
1 file changed
+1 -1
+1 -1
View File
@@ -37,7 +37,7 @@ const eventSchema = new Schema({
}],
});
eventSchema.pre('find', () => {
eventSchema.pre('find', function populate() {
this.populate('formula').populate('plotter');
});
eventSchema.post('save', (doc, next) => {