Skip to content

Commit

Permalink
Merge pull request #445 from Rushikesh-Sonawane99/release-1.0.0
Browse files Browse the repository at this point in the history
Issue #PS-2649 chore: Replaced keyword for boards in filter as per new changes
  • Loading branch information
itsvick authored Nov 27, 2024
2 parents 8fe8e08 + 5f1cdaa commit 4649092
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/AssessmentReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const AssessmentReport: React.FC<AssessmentReportProp> = ({

const filters = {
program: [Program],
se_boards: [stateName],
boards: [stateName],
assessmentType: type,
};

Expand Down
4 changes: 2 additions & 2 deletions src/pages/assessments/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ const Assessments = () => {

const filters = {
program: [Program],
se_boards: [stateName],
boards: [stateName],
// subject: [subjects || subject],
assessment1:
assessmentType:
assessmentType === 'pre'
? AssessmentType.PRE_TEST
: AssessmentType.POST_TEST,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/assessments/user/[userId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ function AssessmentsDetails() {

const filters = {
program: [Program],
se_boards: [stateName],
boards: [stateName],
// subject: [subjects || subject],
assessment1:
assessmentType:
assessmentType === 'pre'
? AssessmentType.PRE_TEST
: AssessmentType.POST_TEST,
Expand Down
4 changes: 2 additions & 2 deletions src/services/AssesmentService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export const getDoIdForAssessmentDetails = async ({
request: {
filters: {
program: filters.program,
board: filters.se_boards,
board: filters.boards,
// subject: filters.subject,
assessmentType: filters.assessment1,
assessmentType: filters.assessmentType,
status: ['Live'],
primaryCategory: ['Practice Question Set'],
},
Expand Down
4 changes: 2 additions & 2 deletions src/utils/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ export interface CohortAttendancePercentParam {
export interface GetDoIdServiceParam {
filters: {
program?: string | string[];
se_boards?: (string | null)[];
boards?: (string | null)[];
subject?: string | string[];
assessment1?: string | string[];
assessmentType?: string | string[];
};
}

Expand Down

0 comments on commit 4649092

Please sign in to comment.