diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-10-19 10:50:36 -0700 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-10-19 10:50:36 -0700 |
commit | d3b8fbfa2864e55b7e5916e55ca818599e7e94d6 (patch) | |
tree | d4c5e7f12c65a0e834065287f8e3cbcf59ec41b1 /app/Model | |
parent | e7f795a63e49a11a9cea239d89d6172e8c40227d (diff) |
Make configurable to number of events stored in project activities
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/ProjectActivityModel.php | 9 |
1 files changed, 1 insertions, 8 deletions
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 @@ -21,13 +21,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 * * @access public @@ -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); } |