correcting a mistake made during linting
This commit is contained in:
1 parent
657c8a1a9b
commit
df4dbef6d0
1 file changed
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user