Improve webhook to add a task

This commit is contained in:
Frédéric Guillot
2014-02-16 18:47:11 -05:00
parent e155edd1bd
commit c2f8e1c436
3 changed files with 21 additions and 2 deletions

View File

@@ -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) {