diff --git a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts index b772578b33dc8785a1f6963482ceb20310b89652..f79ecb419ada7518bcdcb56e0c9198128303efd0 100644 --- a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts +++ b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts @@ -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); } }