Fix ProfileDataService adding the string to the cache instead of the object

This commit is contained in:
Cj
2025-10-19 00:09:27 -04:00
parent cd7d412d8c
commit 4f73860e66
@@ -48,7 +48,7 @@ public class ProfileDataService(ISptLogger<ProfileDataService> logger, FileUtil
throw new Exception("The profile data when serialized resulted in a null value");
}
while (!_profileDataCache.TryAdd($"{profileId}:{modKey}", data)) { }
while (!_profileDataCache.TryAdd($"{profileId}:{modKey}", profileData)) { }
fileUtil.WriteFile($"{ProfileDataFilepath}{profileId}/{modKey}.json", data);
}