diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index bb2a50f..ee746ea 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,11 +4,7 @@
-
-
-
-
-
+
@@ -118,7 +114,6 @@
-
@@ -143,7 +138,8 @@
-
+
+
true
diff --git a/pkg/internal/services/analyzer.go b/pkg/internal/services/analyzer.go
index b1962f8..c537262 100644
--- a/pkg/internal/services/analyzer.go
+++ b/pkg/internal/services/analyzer.go
@@ -181,7 +181,7 @@ func AnalyzeAttachment(file models.Attachment) error {
if linked && err != nil {
return fmt.Errorf("unable to link file record: %v", err)
} else if !linked {
- metadataCache.Store(file.ID, file)
+ CacheAttachment(file)
if err := tx.Save(&file).Error; err != nil {
tx.Rollback()
return fmt.Errorf("unable to save file record: %v", err)