diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-09-25 19:34:46 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-09-25 19:34:46 +0200 |
| commit | 576fe6814be88534f5fe4a8e4703b909b1800f5f (patch) | |
| tree | 5ac381a476c73da9fdb6a9efb78aa976300b9f75 /src/student-mock.ts | |
| parent | 83086eda30405785bd0cd6b864187b3bf4125cff (diff) | |
| download | bycs-sol-576fe6814be88534f5fe4a8e4703b909b1800f5f.tar.gz bycs-sol-576fe6814be88534f5fe4a8e4703b909b1800f5f.zip | |
mock: implement selective student fetching
Diffstat (limited to 'src/student-mock.ts')
| -rw-r--r-- | src/student-mock.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/student-mock.ts b/src/student-mock.ts index 7c22130..0503e40 100644 --- a/src/student-mock.ts +++ b/src/student-mock.ts @@ -16,8 +16,8 @@ Student.prototype.getIconUrl = async function () { return ""; }; -async function fetchStudent(_idFilter?: number, _nameFilter?: string) { - const students = await fetchStudents(); +async function fetchStudent(idFilter?: number, nameFilter?: string) { + const students = await fetchStudents(idFilter, nameFilter); return students[0]; } |
