eliminación lógica en foro comunicados
This commit is contained in:
		
							parent
							
								
									91ac92719a
								
							
						
					
					
						commit
						14df451c0a
					
				|  | @ -33,6 +33,8 @@ export class PostCommentsService { | |||
|   } | ||||
| 
 | ||||
|   async remove(id: string) { | ||||
|     return this.commentModel.findByIdAndRemove({ _id: id }).exec(); | ||||
|     return this.commentModel.findOneAndUpdate({ _id: id }, {status: '-1'}, { | ||||
|       new: true, | ||||
|     });   | ||||
|   } | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue