fix: wrong executions order

This commit is contained in:
Vahor
2024-09-03 17:35:18 +02:00
parent 278c8c6ec6
commit cadb12986c
5 changed files with 7 additions and 5 deletions

View File

@@ -28,6 +28,7 @@ class ScheduledTask extends BaseModel
public function executions(): HasMany
{
// Last execution first
return $this->hasMany(ScheduledTaskExecution::class)->orderBy('created_at', 'desc');
}