Skip to content

Commit

Permalink
fix: add preview enhancement job to new accounts joblist
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Larch <anna@nextcloud.com>
  • Loading branch information
miaulalala authored and backportbot-nextcloud[bot] committed Jul 14, 2023
1 parent 9c41fcd commit 1610081
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 1610081

Please sign in to comment.