mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-14 17:21:28 +00:00
Major refactor and reorganization of types (#652)
* Start of reorganization and cleanup * Remove duplicate title id * Refactor types * Fix Release building * Move classes in /Types to a Types namespace * Fix compilation error (RoomVisualizerPage strikes again) * Fix bugs created from auto merge * Fix auto-merge compilation error * Changes from review/fix failed merge
This commit is contained in:
parent
c8120b3388
commit
f1c5ad4002
316 changed files with 1623 additions and 1518 deletions
|
@ -1,7 +1,7 @@
|
|||
#nullable enable
|
||||
using LBPUnion.ProjectLighthouse.Administration.Reports;
|
||||
using LBPUnion.ProjectLighthouse.Files;
|
||||
using LBPUnion.ProjectLighthouse.PlayerData.Profiles;
|
||||
using LBPUnion.ProjectLighthouse.Types.Entities.Moderation;
|
||||
using LBPUnion.ProjectLighthouse.Types.Entities.Profile;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
|
@ -54,14 +54,7 @@ public class AdminReportController : ControllerBase
|
|||
GriefReport? report = await this.database.Reports.FirstOrDefaultAsync(r => r.ReportId == id);
|
||||
if (report == null) return this.NotFound();
|
||||
|
||||
if (System.IO.File.Exists(Path.Combine("png", $"{report.JpegHash}.png")))
|
||||
{
|
||||
System.IO.File.Delete(Path.Combine("png", $"{report.JpegHash}.png"));
|
||||
}
|
||||
if (System.IO.File.Exists(Path.Combine("r", report.JpegHash)))
|
||||
{
|
||||
System.IO.File.Delete(Path.Combine("r", report.JpegHash));
|
||||
}
|
||||
FileHelper.DeleteResource(report.JpegHash);
|
||||
|
||||
this.database.Reports.Remove(report);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue