Added chore name when getting list of all chores. (#592)

This commit is contained in:
DarienFord 2020-03-06 14:43:38 -05:00 committed by GitHub
parent 8be14768df
commit b0ddc026f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ class ChoresService extends BaseService
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);
}