Skip to content

Commit 17d396c

Browse files
committed
only provide active mock tests
1 parent 784b523 commit 17d396c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/student.component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ const getTestSeriesByGrade = async (grade) => {
760760
},
761761
};
762762

763-
const testSeriesQuery = `select Name, Activate_Date, Image as Test_Image, Survey_Link, Subject, Free from Test_Series where Grade like '%${grade}%' order by Activate_Date asc, Free desc limit 200`;
763+
const testSeriesQuery = `select Name, Activate_Date, Image as Test_Image, Survey_Link, Subject, Free from Test_Series where Active = 'true' and Grade like '%${grade}%' order by Activate_Date asc, Free desc limit 200`;
764764

765765
const [testSeries] = await Promise.all([
766766
limit(() => getAnalysisData(testSeriesQuery, zohoConfig)),

0 commit comments

Comments
 (0)