Skip to content

Commit

Permalink
Merge pull request #76 from YoginiTayade/school-csv-issue
Browse files Browse the repository at this point in the history
Task #230891 serach with school udise code
  • Loading branch information
ankush-maherwal authored Nov 23, 2024
2 parents 2f103bb + 70aef0b commit 62d2fcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/adapters/hasura/altStudent.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ export class ALTStudentService {
"district",
"schoolUdise",
"username",
"schoolName",
"udiseCode",
"class",
"board",
"grade",
Expand Down Expand Up @@ -506,8 +506,8 @@ export class ALTStudentService {
filterQuery += `user: {GroupMemberships: {Groupx: {grade: {_eq: "${parseInt(
studentSearchDto.filters["grade"]
)}"}}}}`;
} else if (e === "schoolName") {
schoolFilter += `School: {name: {_eq: "${studentSearchDto.filters[e]?.eq}"}}`;
} else if (e === "udiseCode") {
schoolFilter += `School: {udiseCode: {_eq: "${studentSearchDto.filters[e]?.eq}"}}`;
//if class is not passed and only school is passed then it should get appended to the main query
filterQuery += schoolFilter;
} else if (e === "class") {
Expand Down

0 comments on commit 62d2fcf

Please sign in to comment.