fix: keep alt text of file if present

This commit is contained in:
Marie 2024-02-13 22:01:53 +00:00
parent 8b90c6c045
commit 8f6dfa611e

View file

@ -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);
}
}