f7cloud_client/apps/mail/lib/Migration/DeleteDuplicateUids.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

33 lines
687 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2024 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Mail\Migration;
use OCA\Mail\BackgroundJob\DeleteDuplicatedUidsJob;
use OCP\BackgroundJob\IJobList;
use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;
class DeleteDuplicateUids implements IRepairStep {
public function __construct(
private IJobList $jobList,
) {
}
#[\Override]
public function getName(): string {
return 'Queue a job to delete duplicated cached messages';
}
#[\Override]
public function run(IOutput $output): void {
$this->jobList->add(DeleteDuplicatedUidsJob::class);
}
}