Browse Source
			
			
			Fix casing error in Attachment, should fix 'Attachment doesn't exist' errors
			
			
				pull/343/head
			
			
		 
		
			
				
					
						 Daniel García
					
					7 years ago
						Daniel García
					
					7 years ago
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: FC8A7D14C3CD543A
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
2 additions and 
0 deletions
			 
			
		 
		
			
				- 
					
					
					 
					src/db/models/attachment.rs
				
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -85,6 +85,8 @@ impl Attachment { | 
			
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     pub fn find_by_id(id: &str, conn: &DbConn) -> Option<Self> { |  |  |     pub fn find_by_id(id: &str, conn: &DbConn) -> Option<Self> { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         let id = id.to_lowercase(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         
 | 
			
		
	
		
		
			
				
					|  |  |         attachments::table |  |  |         attachments::table | 
			
		
	
		
		
			
				
					|  |  |             .filter(attachments::id.eq(id)) |  |  |             .filter(attachments::id.eq(id)) | 
			
		
	
		
		
			
				
					|  |  |             .first::<Self>(&**conn) |  |  |             .first::<Self>(&**conn) | 
			
		
	
	
		
		
			
				
					|  | 
 |