🐛 Fixes in drive video thumbnail

This commit is contained in:
2025-07-30 16:36:16 +08:00
parent c1fc6837db
commit 6f0a42820b
2 changed files with 40 additions and 43 deletions

View File

@@ -182,11 +182,9 @@ public class FileController(
.FirstOrDefaultAsync();
if (file is null) return NotFound();
await fs.DeleteFileDataAsync(file, force: true);
await fs.DeleteFileAsync(file);
db.Files.Remove(file);
await db.SaveChangesAsync();
return NoContent();
}