Skip to content

Commit

Permalink
Merge pull request #8624 from nextcloud/backport/8611/stable2.2
Browse files Browse the repository at this point in the history
[stable2.2] fix: add preview enhancement job to new accounts joblist
  • Loading branch information
GretaD authored Sep 25, 2023
2 parents cdc9fa9 + 56dcc09 commit 525e9d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Service/AccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 525e9d7

Please sign in to comment.