From d3b8fbfa2864e55b7e5916e55ca818599e7e94d6 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 19 Oct 2017 10:50:36 -0700 Subject: Make configurable to number of events stored in project activities --- app/Model/ProjectActivityModel.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'app/Model') diff --git a/app/Model/ProjectActivityModel.php b/app/Model/ProjectActivityModel.php index 380ea125..17cf6485 100644 --- a/app/Model/ProjectActivityModel.php +++ b/app/Model/ProjectActivityModel.php @@ -20,13 +20,6 @@ class ProjectActivityModel extends Base */ const TABLE = 'project_activities'; - /** - * Maximum number of events - * - * @var integer - */ - const MAX_EVENTS = 1000; - /** * Add a new event for the project * @@ -49,7 +42,7 @@ class ProjectActivityModel extends Base 'data' => json_encode($data), ); - $this->cleanup(self::MAX_EVENTS - 1); + $this->cleanup(PROJECT_ACTIVITIES_MAX_EVENTS - 1); return $this->db->table(self::TABLE)->insert($values); } -- cgit v1.2.3