Skip to content

Commit ea669ce

Browse files
committed
fix: Don't trigger a reindex on app update
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 3841433 commit ea669ce

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

appinfo/info.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ Refer to the [Context Chat Backend's readme](https://github.com/nextcloud/contex
4343
<nextcloud min-version="30" max-version="32"/>
4444
</dependencies>
4545
<background-jobs>
46-
<job>OCA\ContextChat\BackgroundJobs\SchedulerJob</job>
4746
<job>OCA\ContextChat\BackgroundJobs\FileSystemListenerJob</job>
4847
<job>OCA\ContextChat\BackgroundJobs\ActionJob</job>
4948
<job>OCA\ContextChat\BackgroundJobs\RotateLogsJob</job>

lib/Repair/AppInstallStep.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
namespace OCA\ContextChat\Repair;
1111

1212
use OCA\ContextChat\AppInfo\Application;
13+
use OCA\ContextChat\BackgroundJobs\SchedulerJob;
1314
use OCA\ContextChat\Logger;
1415
use OCA\ContextChat\Service\ProviderConfigService;
16+
use OCP\BackgroundJob\IJobList;
1517
use OCP\IAppConfig;
1618
use OCP\IConfig;
1719
use OCP\Migration\IOutput;
@@ -23,6 +25,7 @@ public function __construct(
2325
private Logger $logger,
2426
private IAppConfig $appConfig,
2527
private IConfig $config,
28+
private IJobList $jobList,
2629
) {
2730
}
2831

@@ -43,5 +46,7 @@ public function run(IOutput $output): void {
4346
$providerConfigService = new ProviderConfigService($this->config);
4447
/** @psalm-suppress ArgumentTypeCoercion, UndefinedClass */
4548
$providerConfigService->updateProvider('files', 'default', '', true);
49+
50+
$this->jobList->add(SchedulerJob::class);
4651
}
4752
}

0 commit comments

Comments
 (0)