feat: index txt attachments for content search

This commit is contained in:
Philipinho
2026-08-24 22:47:53 +01:00
parent 479808c1a9
commit b5a11798a3
2 changed files with 3 additions and 3 deletions
@@ -116,8 +116,8 @@ export class AttachmentService {
}); });
} }
// Only index PDFs and DOCX files // Only index PDF, DOCX and TXT files
if (['.pdf', '.docx'].includes(attachment.fileExt.toLowerCase())) { if (['.pdf', '.docx', '.txt'].includes(attachment.fileExt.toLowerCase())) {
await this.attachmentQueue.add( await this.attachmentQueue.add(
QueueJob.ATTACHMENT_INDEX_CONTENT, QueueJob.ATTACHMENT_INDEX_CONTENT,
{ {