fix: keep alt text of file if present
This commit is contained in:
		
							parent
							
								
									8b90c6c045
								
							
						
					
					
						commit
						8f6dfa611e
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -419,6 +419,10 @@ export class ImportNotesProcessorService {
 | 
			
		|||
				const name = file.url.substring(slashdex + 1);
 | 
			
		||||
				const exists = await this.driveFilesRepository.findOneBy({ name: name, userId: user.id });
 | 
			
		||||
				if (exists) {
 | 
			
		||||
					if (file.name) {
 | 
			
		||||
						this.driveService.updateFile(exists, { comment: file.name }, user);
 | 
			
		||||
					}
 | 
			
		||||
					
 | 
			
		||||
					files.push(exists);
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue