Skip to content

Commit

Permalink
fix(comment): added single line comments
Browse files Browse the repository at this point in the history
  • Loading branch information
navneethkrish committed Dec 20, 2024
1 parent ddf054a commit e2ec38e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/web-api/src/members/members.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web-api/src/teams/teams.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit e2ec38e

Please sign in to comment.