From e2ec38e1bd7b3f47c4742ea8530cdeb7b5824343 Mon Sep 17 00:00:00 2001 From: navneethkrish Date: Fri, 20 Dec 2024 15:50:15 +0530 Subject: [PATCH] fix(comment): added single line comments --- apps/web-api/src/members/members.controller.ts | 4 ++-- apps/web-api/src/teams/teams.controller.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 = {