Fixed bug where api caching was not stored correctly

This commit is contained in:
Marc Ole Bulling
2026-03-20 11:19:39 +01:00
parent da834518c7
commit b711973bc2

View File

@@ -69,5 +69,5 @@ func RequireSaveUserOnline(userId int) bool {
// RequireSaveApiKeyUsage returns false if no write is necessary.
// To reduce database writes, the entry is only updated if the last timestamp is more than 30 seconds old
func RequireSaveApiKeyUsage(id string) bool {
return cacheStore[TypeUserLastOnline].IsUpdateRequiredString(id, 30)
return cacheStore[TypeApiLastUsed].IsUpdateRequiredString(id, 30)
}