diff --git a/API/Controllers/LicenseController.cs b/API/Controllers/LicenseController.cs index 368258c9e..29d4824a7 100644 --- a/API/Controllers/LicenseController.cs +++ b/API/Controllers/LicenseController.cs @@ -31,7 +31,12 @@ public class LicenseController( [ResponseCache(CacheProfileName = ResponseCacheProfiles.LicenseCache)] public async Task> HasValidLicense(bool forceCheck = false) { - return Ok(await licenseService.HasActiveLicense(forceCheck)); + var ret = await licenseService.HasActiveLicense(forceCheck); + if (ret) + { + await taskScheduler.ScheduleKavitaPlusTasks(); + } + return Ok(ret); } /// @@ -57,6 +62,7 @@ public async Task RemoveLicense() setting.Value = null; unitOfWork.SettingsRepository.Update(setting); await unitOfWork.CommitAsync(); + await taskScheduler.ScheduleKavitaPlusTasks(); return Ok(); }