Added chore name when getting list of all chores.

This commit is contained in:
Darien Ford 2020-03-05 19:49:59 -05:00
parent c38c519b18
commit 44f8070af9

View File

@ -25,7 +25,7 @@ class ChoresService extends BaseService
public function GetCurrent() public function GetCurrent()
{ {
$sql = 'SELECT * from chores_current'; $sql = 'SELECT chores_current.*, chores.name from chores_current join chores on chores_current.chore_id = chores.id';
return $this->getDatabaseService()->ExecuteDbQuery($sql)->fetchAll(\PDO::FETCH_OBJ); return $this->getDatabaseService()->ExecuteDbQuery($sql)->fetchAll(\PDO::FETCH_OBJ);
} }