diff options
| author | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-16 18:47:11 -0500 |
|---|---|---|
| committer | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-16 18:47:11 -0500 |
| commit | c2f8e1c4360cbdd0c740b747d017034d97d8e053 (patch) | |
| tree | 0de69c3cbae82cdfa910f1cbbdb87750f8b6fcdc /models/project.php | |
| parent | e155edd1bdb3c98f240292642c6ee38bf2b1e2cf (diff) | |
Improve webhook to add a task
Diffstat (limited to 'models/project.php')
| -rw-r--r-- | models/project.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/models/project.php b/models/project.php index 7a0fb2b1..b0c2b2ca 100644 --- a/models/project.php +++ b/models/project.php @@ -16,6 +16,11 @@ class Project extends Base return $this->db->table(self::TABLE)->eq('id', $project_id)->findOne(); } + public function getFirst() + { + return $this->db->table(self::TABLE)->findOne(); + } + public function getAll($fetch_stats = false) { if (! $fetch_stats) { |
