From 09ba345edf21d6a13ca994b672af215dd37e3052 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 a9e73cba96..a553ede991 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; }