Updated ogAgent ping updatedAt. Fixed server date
testing/ogcore-api/pipeline/head This commit looks good Details

pull/31/head^2
Manuel Aranda Rosales 2025-04-23 17:17:42 +02:00
parent 8d61a564a4
commit fbb694581e
9 changed files with 70 additions and 3 deletions

View File

@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace App\Command\Migration;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
#[AsCommand(name: 'opengnsys:test', description: 'Hello PhpStorm')]
class TestCommand extends Command
{
protected function execute(InputInterface $input, OutputInterface $output): int
{
return Command::SUCCESS;
}
}

View File

@ -71,9 +71,7 @@ class StatusController extends AbstractController
return new JsonResponse(['message' => 'Client not found'], Response::HTTP_NOT_FOUND);
}
$updateAt = (new \DateTime())->setTimestamp((int)$data['timestamp']);
$client->setUpdatedAt($updateAt);
$client->setUpdatedAt(new \DateTime());
$this->entityManager->persist($client);
$this->entityManager->flush();
}

View File

@ -0,0 +1,8 @@
<?php
namespace App\Dto\Input;
class CommandTaskScheduleInput
{
}

View File

@ -0,0 +1,8 @@
<?php
namespace App\Dto\Output;
class CommandTaskScheduleOutput
{
}

View File

@ -0,0 +1,8 @@
<?php
namespace App\State\Processor;
class CommandTaskScheduleProcessor
{
}

View File

@ -0,0 +1,8 @@
<?php
namespace App\State\Provider;
class CommandTaskScheduleProvider
{
}

View File

@ -0,0 +1,8 @@
<?php
namespace App\Validator\Constraints;
class RemoteCalendarRuleUnique
{
}

View File

@ -0,0 +1,8 @@
<?php
namespace App\Validator\Constraints;
class RemoteCalendarRuleUniqueValidator
{
}