mirror of
https://github.com/Ikatono/ComiServ.git
synced 2025-10-28 20:45:35 -05:00
fixed and reorganized tests
This commit is contained in:
@@ -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()
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user