Skip to content

Commit

Permalink
fix: keep alt text of file if present
Browse files Browse the repository at this point in the history
  • Loading branch information
Marie authored and kanarikanaru committed Aug 13, 2024
1 parent a7fdc35 commit ccb2f75
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit ccb2f75

Please sign in to comment.