From 66545c41c617518784263e7551fdf16b6409bfae Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Thu, 6 Jul 2023 17:36:54 +0200 Subject: [PATCH] fix: add preview enhancement job to new accounts joblist Signed-off-by: Anna Larch --- lib/Service/AccountService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php index 014360a603..9ddf90f812 100644 --- a/lib/Service/AccountService.php +++ b/lib/Service/AccountService.php @@ -25,6 +25,7 @@ namespace OCA\Mail\Service; use OCA\Mail\Account; +use OCA\Mail\BackgroundJob\PreviewEnhancementProcessingJob; use OCA\Mail\BackgroundJob\SyncJob; use OCA\Mail\BackgroundJob\TrainImportanceClassifierJob; use OCA\Mail\Db\MailAccount; @@ -148,6 +149,7 @@ public function save(MailAccount $newAccount): MailAccount { // Insert background jobs for this account $this->jobList->add(SyncJob::class, ['accountId' => $newAccount->getId()]); $this->jobList->add(TrainImportanceClassifierJob::class, ['accountId' => $newAccount->getId()]); + $this->jobList->add(PreviewEnhancementProcessingJob::class, ['accountId' => $newAccount->getId()]); return $newAccount; }