This commit is contained in:
Michael Green
2025-01-09 16:22:08 +11:00
parent aa90b4ebc3
commit a0a8495597

View File

@@ -318,14 +318,15 @@ namespace gaseous_server.Models
// get platform data // get platform data
Platform? platform = null; Platform? platform = null;
if (Storage.GetCacheStatus(Communications.MetadataSource, "Platform", IGDBId) == Storage.CacheStatus.NotPresent) // if (Storage.GetCacheStatus(HasheousClient.Models.MetadataSources.None, "Platform", IGDBId) == Storage.CacheStatus.NotPresent)
{ // {
//platform = Platforms.GetPlatform(IGDBId, false); // //platform = Platforms.GetPlatform(IGDBId, false);
} // }
else // else
{ // {
platform = (Platform)Storage.GetCacheValue<Platform>(Communications.MetadataSource, new Platform(), "id", IGDBId); // platform = (Platform)Storage.GetCacheValue<Platform>(HasheousClient.Models.MetadataSources.None, new Platform(), "id", IGDBId);
} // }
platform = Platforms.GetPlatform(IGDBId, HasheousClient.Models.MetadataSources.None);
if (platform != null) if (platform != null)
{ {