We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 775a1b2 + 4133178 commit 8fd8b72Copy full SHA for 8fd8b72
lib/Migration/FixBackgroundJobs.php
@@ -12,6 +12,7 @@
12
use OCA\Mail\Service\AccountService;
13
use OCP\Migration\IOutput;
14
use OCP\Migration\IRepairStep;
15
+use function method_exists;
16
17
class FixBackgroundJobs implements IRepairStep {
18
public function __construct(
@@ -30,6 +31,11 @@ public function getName(): string {
30
31
*/
32
#[\Override]
33
public function run(IOutput $output) {
34
+ // Skip if method does not exist yet during upgrade
35
+ if (!method_exists($this->accountService, 'scheduleBackgroundJobs')) {
36
+ return;
37
+ }
38
+
39
$accounts = $this->mapper->getAllAccounts();
40
41
$output->startProgress(count($accounts));
0 commit comments