Fix level republishing not updating resource or rootLevel

This commit is contained in:
Slendy 2023-04-11 20:23:43 -05:00
parent c50e53ad9a
commit 5fbaa5df20
No known key found for this signature in database
GPG key ID: 7288D68361B91428
2 changed files with 24 additions and 30 deletions

View file

@ -227,12 +227,6 @@ public class PhotosController : ControllerBase
if (photoSlot == null || photoSlot.CreatorId != token.UserId) return this.Unauthorized();
}
HashSet<string> photoResources = new(){photo.LargeHash, photo.SmallHash, photo.MediumHash, photo.PlanHash,};
foreach (string hash in photoResources)
{
FileHelper.DeleteResource(hash);
}
this.database.Photos.Remove(photo);
await this.database.SaveChangesAsync();
return this.Ok();