From 8c6d9201facda8f513b88169ec8548eab4ec5ae9 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 27 Apr 2022 16:52:29 +1000 Subject: [PATCH] Limit client activities --- app/Models/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Client.php b/app/Models/Client.php index 76a4be34393b..c92d598bf543 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -188,7 +188,7 @@ class Client extends BaseModel implements HasLocalePreference public function activities() { - return $this->hasMany(Activity::class)->orderBy('id', 'desc'); + return $this->hasMany(Activity::class)->take(50)->orderBy('id', 'desc'); } public function contacts()