mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-12 16:21:28 +00:00
Fix level republishing not updating resource or rootLevel
This commit is contained in:
parent
c50e53ad9a
commit
5fbaa5df20
2 changed files with 24 additions and 30 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue