NotificationHistory: Use and adjust getDefaultSort() in favor of removed getSortRules()

This commit is contained in:
Eric Lippmann 2019-12-11 15:58:53 +01:00
parent 28f6d565a1
commit aeff535454

View file

@ -39,9 +39,9 @@ class NotificationHistory extends Model
];
}
public function getSortRules()
public function getDefaultSort()
{
return ['send_time DESC'];
return 'send_time desc';
}
public function createBehaviors(Behaviors $behaviors)