Fixed filters
This commit is contained in:
@@ -29,8 +29,8 @@ class MemberService {
|
||||
const where = {
|
||||
clubId: clubId
|
||||
};
|
||||
if (!showAll) {
|
||||
where.active = true;
|
||||
if (!showAll || showAll === 'false') {
|
||||
where['active'] = true;
|
||||
}
|
||||
return Member.findAll({ where })
|
||||
.then(members => {
|
||||
|
||||
Reference in New Issue
Block a user