eliminación lógica en áreas comunes
This commit is contained in:
		
							parent
							
								
									2519136654
								
							
						
					
					
						commit
						17941893cb
					
				| 
						 | 
					@ -32,6 +32,8 @@ export class CommonAreasService {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  async remove(id: string) {
 | 
					  async remove(id: string) {
 | 
				
			||||||
    return this.commonAreaModel.findByIdAndRemove({ _id: id }).exec();
 | 
					    return this.commonAreaModel.findOneAndUpdate({ _id: id }, {status: '-1'}, {
 | 
				
			||||||
 | 
					      new: true,
 | 
				
			||||||
 | 
					    });  
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue