More Polish (#2686)

This commit is contained in:
Joe Milazzo 2024-02-03 15:28:16 -06:00 committed by GitHub
parent 2ef266c676
commit 0b0e858f24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 35 additions and 8 deletions

View file

@ -68,7 +68,6 @@
<PackageReference Include="Hangfire" Version="1.8.9" />
<PackageReference Include="Hangfire.InMemory" Version="0.7.0" />
<PackageReference Include="Hangfire.MaximumConcurrentExecutions" Version="1.1.0" />
<PackageReference Include="Hangfire.MemoryStorage.Core" Version="1.4.0" />
<PackageReference Include="Hangfire.Storage.SQLite" Version="0.4.0" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.57" />
<PackageReference Include="MarkdownDeep.NET.Core" Version="1.5.0.4" />
@ -102,7 +101,7 @@
</PackageReference>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="8.0.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.3.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.3.1" />
<PackageReference Include="System.IO.Abstractions" Version="20.0.15" />
<PackageReference Include="System.Drawing.Common" Version="8.0.1" />
<PackageReference Include="VersOne.Epub" Version="3.3.1" />

View file

@ -44,7 +44,7 @@ public class ScrobblingController : BaseApiController
/// </summary>
/// <returns></returns>
[HttpGet("anilist-token")]
public async Task<ActionResult> GetAniListToken()
public async Task<ActionResult<string>> GetAniListToken()
{
var user = await _unitOfWork.UserRepository.GetUserByUsernameAsync(User.GetUsername());
if (user == null) return Unauthorized();

View file

@ -174,6 +174,8 @@ public class LicenseService(
catch (Exception ex)
{
logger.LogError(ex, "There was an issue connecting to Kavita+");
await provider.FlushAsync();
await provider.SetAsync(CacheKey, false, _licenseCacheTimeout);
}
return false;