Merge pull request #130 from marryday/bugfix-projection

fix: randStudent mainTeacher max randNumber
This commit is contained in:
Laforge Thomas
2023-10-01 14:29:40 +02:00
committed by GitHub

View File

@@ -36,7 +36,7 @@ export const randStudent = (): Student => ({
id: factoryStudent(),
firstname: randFirstName(),
lastname: randLastName(),
mainTeacher: teachers[randNumber({ max: teachers.length })],
mainTeacher: teachers[randNumber({ max: teachers.length - 1 })],
school: randWord(),
});