complete story 4.2 with qa tests
This commit is contained in:
@@ -35,10 +35,10 @@ class Timeline extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the updates for the timeline.
|
||||
* Get the updates for the timeline, ordered chronologically (oldest first).
|
||||
*/
|
||||
public function updates(): HasMany
|
||||
{
|
||||
return $this->hasMany(TimelineUpdate::class);
|
||||
return $this->hasMany(TimelineUpdate::class)->orderBy('created_at', 'asc');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user