aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Repair/NC29/SanitizeAccountProperties.php
blob: 412570ba71decc6abda81fda4636458213b5b96b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php

declare(strict_types=1);

/**
 * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OC\Repair\NC29;

use OCP\BackgroundJob\IJobList;
use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;

class SanitizeAccountProperties implements IRepairStep {

	public function __construct(
		private IJobList $jobList,
	) {
	}

	public function getName(): string {
		return 'Validate account properties and store phone numbers in a known format for search';
	}

	public function run(IOutput $output): void {
		$this->jobList->add(SanitizeAccountPropertiesJob::class, null);
		$output->info('Queued background to validate account properties.');
	}
}