Merged in feature/track-filesize (pull request #200)
track file sizes for all documents in system * feature complete needs dev testing
This commit is contained in:
@@ -248,6 +248,7 @@ type DocumentInFolder struct {
|
||||
OriginalPath *string
|
||||
Labels []LabelRecord
|
||||
TextRecord *TextRecord // Only populated when includeTextRecord=true
|
||||
FileSizeBytes *int64 // File size in bytes (nil for legacy documents)
|
||||
}
|
||||
|
||||
// LabelRecord represents a label applied to a document.
|
||||
@@ -368,6 +369,7 @@ func (s *Service) GetDocumentsEnriched(ctx context.Context, folderID uuid.UUID,
|
||||
OriginalPath: doc.Originalpath,
|
||||
Labels: labels,
|
||||
TextRecord: textRecordsMap[doc.ID],
|
||||
FileSizeBytes: doc.FileSizeBytes,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user