diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 81bfe00..490cca3 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,9 +4,9 @@
-
+
-
+
@@ -136,7 +136,8 @@
-
+
+
true
diff --git a/pkg/internal/services/attachments.go b/pkg/internal/services/attachments.go
index 94ababc..d18f932 100644
--- a/pkg/internal/services/attachments.go
+++ b/pkg/internal/services/attachments.go
@@ -197,9 +197,9 @@ func DeleteAttachment(item models.Attachment) error {
}
func MaintainAttachmentCache() {
- var keySet []uint
+ var keySet []any
metadataCache.Range(func(k any, v any) bool {
- keySet = append(keySet, k.(uint))
+ keySet = append(keySet, k)
return true
})
if len(keySet) > metadataCacheLimit {