aboutsummaryrefslogtreecommitdiff
path: root/js/student-mock.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/student-mock.js')
-rw-r--r--js/student-mock.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/student-mock.js b/js/student-mock.js
index 0ea12ea..7c79e12 100644
--- a/js/student-mock.js
+++ b/js/student-mock.js
@@ -1,3 +1,9 @@
-import { Student, fetchStudent } from "./student-common.js";
+import { Student } from "./student-common.js";
import { fetchStudentsMock as fetchStudents } from "./mock.js";
-export { Student, fetchStudents, fetchStudent }; \ No newline at end of file
+
+async function fetchStudent(idFilter, nameFilter, groupFilter) {
+ const students = await fetchStudents(idFilter, nameFilter, groupFilter);
+ return students[0];
+}
+
+export { Student, fetchStudents, fetchStudent };