MAPG-240 UserInChallengeRepository::isUserParticipatingInChallenge should return bool

This commit is contained in:
Bence Pőcze 2021-05-29 00:56:43 +02:00
parent 784037de6f
commit f305c97513
Signed by: bence
GPG Key ID: AA52B11A3269D1C1

View File

@ -76,6 +76,6 @@ class UserInChallengeRepository
$select->where('user_id', '=', $userId); $select->where('user_id', '=', $userId);
$select->where('challenge_id', '=', $challenge->getId()); $select->where('challenge_id', '=', $challenge->getId());
return $select->count(); return $select->count() != 0;
} }
} }