This commit is contained in:
guillaume91 2024-06-26 14:53:40 +02:00
parent 92f53cfc1b
commit 28110acedd

View file

@ -57,7 +57,7 @@ public function handle(): void
public static function fromDate(Project $project,Carbon $date,int $offset = 1):NullJob|ProjectDownloadRDSJob
{
$filename = $date->format('Y-m-d') . '.tif';
if ($project->downloads()->statusSuccess()->where(['name' => $filename])->exists()) {
if (!$project->downloads()->statusSuccess()->where(['name' => $filename])->exists()) {
Log::warning("The download $filename can't be processed. Please check it's status.");
return new NullJob();
}