fix small typo
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 29 Aug 2024 22:41:07 +0000 (00:41 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 29 Aug 2024 22:41:07 +0000 (00:41 +0200)
music_assistant/server/controllers/cache.py

index bf27f7f409e0fdfae9f7820ed84d89ec27da53bb..0d7e6b85adb6b99ff605176edba92a2d57862c1d 100644 (file)
@@ -203,7 +203,7 @@ class CacheController(CoreController):
         for db_row in await self.database.get_rows(DB_TABLE_CACHE):
             # clean up db cache object only if expired
             if db_row["expires"] < cur_timestamp:
-                await self.delete(db_row["key"])
+                await self.delete(db_row["id"])
                 cleaned_records += 1
             await asyncio.sleep(0)  # yield to eventloop
         if cleaned_records > 50: