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 <[email protected]>
  • Loading branch information
miaulalala committed Aug 16, 2023
1 parent 6db4c07 commit 73ae04e
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 73ae04e

Please sign in to comment.