This commit is contained in:
2025-07-15 19:08:05 +02:00
parent 2a89828384
commit c2fff00747
2 changed files with 9 additions and 1 deletions

View File

@ -174,7 +174,10 @@ class RedmineService
public function majProjectIssues(Project $project, string $apiKey, bool $force = false)
{
$rissues = $this->getProjectIssues($project->getId(), $apiKey, $force ? null : $project->getUpdateAt());
$updatedAt = $project->getUpdateAt();
$updatedMinus10 = $updatedAt ? (clone $updatedAt)->sub(new \DateInterval('PT10M')) : null;
$rissues = $this->getProjectIssues($project->getId(), $apiKey, $force ? null : $updatedMinus10);
$rissueids = [];
foreach ($rissues as $rissue) {
array_push($rissueids, $rissue['id']);