fix transform method calls #28
@ -144,7 +144,6 @@ const FlavourItemSchema = new Schema({
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
FlavourItemSchema.set("toJSON", {
 | 
					FlavourItemSchema.set("toJSON", {
 | 
				
			||||||
    transform(_document, returnedObject) {
 | 
					    transform(_document, returnedObject) {
 | 
				
			||||||
        returnedObject.ItemType;
 | 
					 | 
				
			||||||
        delete returnedObject._id;
 | 
					        delete returnedObject._id;
 | 
				
			||||||
        delete returnedObject.__v;
 | 
					        delete returnedObject.__v;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user