diff --git a/appinfo/info.xml b/appinfo/info.xml index ec66144f..0408795d 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -43,7 +43,6 @@ Refer to the [Context Chat Backend's readme](https://github.com/nextcloud/contex - OCA\ContextChat\BackgroundJobs\SchedulerJob OCA\ContextChat\BackgroundJobs\FileSystemListenerJob OCA\ContextChat\BackgroundJobs\ActionJob OCA\ContextChat\BackgroundJobs\RotateLogsJob diff --git a/lib/Repair/AppInstallStep.php b/lib/Repair/AppInstallStep.php index 72ef36d0..81563b6f 100644 --- a/lib/Repair/AppInstallStep.php +++ b/lib/Repair/AppInstallStep.php @@ -10,8 +10,10 @@ namespace OCA\ContextChat\Repair; use OCA\ContextChat\AppInfo\Application; +use OCA\ContextChat\BackgroundJobs\SchedulerJob; use OCA\ContextChat\Logger; use OCA\ContextChat\Service\ProviderConfigService; +use OCP\BackgroundJob\IJobList; use OCP\IAppConfig; use OCP\IConfig; use OCP\Migration\IOutput; @@ -23,6 +25,7 @@ public function __construct( private Logger $logger, private IAppConfig $appConfig, private IConfig $config, + private IJobList $jobList, ) { } @@ -43,5 +46,7 @@ public function run(IOutput $output): void { $providerConfigService = new ProviderConfigService($this->config); /** @psalm-suppress ArgumentTypeCoercion, UndefinedClass */ $providerConfigService->updateProvider('files', 'default', '', true); + + $this->jobList->add(SchedulerJob::class); } }