fix(models): update sorting of scheduled database backups to order by creation date instead of name
This commit is contained in:
parent
df1fe5739b
commit
f0b231b5db
1 changed files with 2 additions and 2 deletions
|
|
@ -12,12 +12,12 @@ class ScheduledDatabaseBackup extends BaseModel
|
|||
|
||||
public static function ownedByCurrentTeam()
|
||||
{
|
||||
return ScheduledDatabaseBackup::whereRelation('team', 'id', currentTeam()->id)->orderBy('name');
|
||||
return ScheduledDatabaseBackup::whereRelation('team', 'id', currentTeam()->id)->orderBy('created_at', 'desc');
|
||||
}
|
||||
|
||||
public static function ownedByCurrentTeamAPI(int $teamId)
|
||||
{
|
||||
return ScheduledDatabaseBackup::whereRelation('team', 'id', $teamId)->orderBy('name');
|
||||
return ScheduledDatabaseBackup::whereRelation('team', 'id', $teamId)->orderBy('created_at', 'desc');
|
||||
}
|
||||
|
||||
public function team()
|
||||
|
|
|
|||
Loading…
Reference in a new issue