mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
v0.8.6.1 - A few small issues Hotfix (#3749)
This commit is contained in:
parent
e76a7152db
commit
a1264cb5e8
@ -178,7 +178,6 @@ public class StatsService : IStatsService
|
||||
var sw = Stopwatch.StartNew();
|
||||
var response = await (Configuration.StatsApiUrl + "/api/health/")
|
||||
.WithBasicHeaders(ApiKey)
|
||||
.WithTimeout(TimeSpan.FromSeconds(30))
|
||||
.GetAsync();
|
||||
|
||||
if (response.StatusCode == StatusCodes.Status200OK)
|
||||
@ -197,7 +196,7 @@ public class StatsService : IStatsService
|
||||
|
||||
private async Task<int> MaxSeriesInAnyLibrary()
|
||||
{
|
||||
// If first time flow, just return 0
|
||||
// If first time flow, return 0
|
||||
if (!await _context.Series.AnyAsync()) return 0;
|
||||
return await _context.Series
|
||||
.Select(s => _context.Library.Where(l => l.Id == s.LibraryId).SelectMany(l => l.Series!).Count())
|
||||
|
Loading…
x
Reference in New Issue
Block a user