20 lines
502 B
PHP
20 lines
502 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\NuqloudScrum\BackgroundJob;
|
|
|
|
use OCA\NuqloudScrum\Service\WorkspaceService;
|
|
|
|
class SyncConversationsJob extends AbstractScrumJob {
|
|
protected function runEnabled($argument): void {
|
|
/** @var WorkspaceService $workspaceService */
|
|
$workspaceService = \OC::$server->query(WorkspaceService::class);
|
|
$workspaceService->syncConversations();
|
|
}
|
|
|
|
protected function getFailureMessage(): string {
|
|
return 'NuQloud Scrum conversation sync job failed.';
|
|
}
|
|
}
|