Fix cleanup logic

Keep only cache entries with an expiry in the future.
This commit is contained in:
TKone7 2023-10-23 15:49:34 +02:00
parent 413941f5ac
commit 59a92d0363
No known key found for this signature in database
GPG Key ID: 34AD5202AD209A91

View File

@ -31,7 +31,7 @@ class MemoryCache {
}
private cleanup() {
this.cache = this.cache.filter((cache) => cache.expires < (new Date()));
this.cache = this.cache.filter((cache) => cache.expires > (new Date()));
}
}