mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
Fix theming migration repair step by passing correct type for argument
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
4ecf4b4642
commit
09099cfaec
1 changed files with 5 additions and 6 deletions
|
|
@ -68,10 +68,9 @@ class MigrateBackgroundImages extends QueuedJob {
|
|||
$this->logger = $logger;
|
||||
}
|
||||
|
||||
protected function run($argument): void {
|
||||
if (!isset($argument['stage'])) {
|
||||
// not executed in 25.0.0?!
|
||||
$argument['stage'] = self::STAGE_PREPARE;
|
||||
protected function run(mixed $argument): void {
|
||||
if (!is_array($argument) || !isset($argument['stage'])) {
|
||||
throw new \Exception('Job '.self::class.' called with wrong argument');
|
||||
}
|
||||
|
||||
switch ($argument['stage']) {
|
||||
|
|
@ -99,10 +98,10 @@ class MigrateBackgroundImages extends QueuedJob {
|
|||
$userIds = $result->fetchAll(\PDO::FETCH_COLUMN);
|
||||
$this->storeUserIdsToProcess($userIds);
|
||||
} catch (\Throwable $t) {
|
||||
$this->jobList->add(self::class, self::STAGE_PREPARE);
|
||||
$this->jobList->add(self::class, ['stage' => self::STAGE_PREPARE]);
|
||||
throw $t;
|
||||
}
|
||||
$this->jobList->add(self::class, self::STAGE_EXECUTE);
|
||||
$this->jobList->add(self::class, ['stage' => self::STAGE_EXECUTE]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue