Prevent grief report deletion from removing slot rootLevel (#395)

This commit is contained in:
Josh 2022-08-02 08:10:53 -05:00 committed by GitHub
parent d1bec61b90
commit add83a32a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,8 +31,9 @@ public class AdminReportController : ControllerBase
{
report.JpegHash,
report.GriefStateHash,
report.InitialStateHash,
};
if(report.LevelType != "user")
hashes.Add(report.InitialStateHash);
foreach (string hash in hashes)
{
if (System.IO.File.Exists(Path.Combine("png", $"{hash}.png")))