fixed and reorganized tests

This commit is contained in:
Cameron
2024-09-08 14:08:48 -05:00
parent fd92d38cdd
commit a69cd6a33c
9 changed files with 227 additions and 205 deletions

View File

@@ -471,8 +471,8 @@ public class ComicController(ComicsContext context, ILogger<ComicController> log
public async Task<IActionResult> GetLibraryStats()
{
return Ok(new LibraryResponse(
await _context.Comics.CountAsync(),
await _context.Comics.Select(c => c.FileXxhash64).Distinct().CountAsync()
ComicCount: await _context.Comics.CountAsync(),
UniqueFiles: await _context.Comics.Select(c => c.FileXxhash64).Distinct().CountAsync()
));
}
}