mirror of
				https://github.com/johrpan/musicus.git
				synced 2025-10-26 11:47:25 +01:00 
			
		
		
		
	Delete tracks when deleting recording
This commit is contained in:
		
							parent
							
								
									0b2dd1abb9
								
							
						
					
					
						commit
						8e952fb6e2
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -388,6 +388,7 @@ impl Database { | |||
|     } | ||||
| 
 | ||||
|     pub fn delete_recording(&self, id: i64) -> Result<()> { | ||||
|         self.delete_tracks(id)?; | ||||
|         diesel::delete(recordings::table.filter(recordings::id.eq(id))).execute(&self.c)?; | ||||
|         Ok(()) | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Elias Projahn
						Elias Projahn