~cypheon/nextcloud-chores-app

fff1a18be2a137be345b3cafab5b06c812cf3bfc — Johann Rudloff 1 year, 8 months ago e21bd0a
Prevent retrieving deleted chores by ID
1 files changed, 3 insertions(+), 0 deletions(-)

M lib/Db/ChoreMapper.php
M lib/Db/ChoreMapper.php => lib/Db/ChoreMapper.php +3 -0
@@ 22,6 22,9 @@ class ChoreMapper extends QBMapper {
       ->andWhere(
         $qb->expr()->eq('id', $qb->createNamedParameter($choreId))
       )
       ->andWhere(
         'deleted = false'
       )
       ;

    return $this->findEntity($qb);