diff --git a/apps/web-api/src/members/members.controller.ts b/apps/web-api/src/members/members.controller.ts index d941839a6..53c18ce45 100644 --- a/apps/web-api/src/members/members.controller.ts +++ b/apps/web-api/src/members/members.controller.ts @@ -56,7 +56,7 @@ export class MemberController { if (name__icontains) { delete builtQuery.where?.name; } - if (isHost || isSpeaker) { + if (isHost || isSpeaker) { //Remove isHost and isSpeaker from the default query if either is present in queryParams delete builtQuery.where?.isHost; delete builtQuery.where?.isSpeaker; } @@ -119,7 +119,7 @@ export class MemberController { if (name__icontains) { delete builtQuery.where?.name; } - if (isHost || isSpeaker) { + if (isHost || isSpeaker) { //Remove isHost and isSpeaker from the default query if either is present in queryParams delete builtQuery.where?.isHost; delete builtQuery.where?.isSpeaker; } diff --git a/apps/web-api/src/teams/teams.controller.ts b/apps/web-api/src/teams/teams.controller.ts index 698a5d8ad..bc2bd6d0e 100644 --- a/apps/web-api/src/teams/teams.controller.ts +++ b/apps/web-api/src/teams/teams.controller.ts @@ -54,7 +54,7 @@ export class TeamsController { const builder = new PrismaQueryBuilder(queryableFields); const builtQuery = builder.build(request.query); const { focusAreas, isHost } : any = request.query; - if(isHost) { + if(isHost) { //Remove isHost from the default query if it is present in queryParams delete builtQuery.where?.isHost; } builtQuery.where = {