改进 排序顺序

This commit is contained in:
iVampireSP.com 2022-09-12 19:15:05 +08:00
parent ef04cbd09d
commit 7626d2194e
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -39,7 +39,7 @@ public function scopeUser($query)
public function getCurrentUserTasks()
{
return Cache::remember('user_tasks_' . auth()->id(), 3600, function () {
return $this->user()->with('host')->get();
return $this->user()->with('host')->latest()->get();
});
}