Improved error handling for negative lap times

ref #71
This commit is contained in:
niggl committed 2021-01-03 17:21:53 +01:00
1 parent dcb791c9a2
commit 28c1b6d31d
5 files changed
+24 -5

No files matched your search

+1 -2
View File
@@ -43,10 +43,9 @@ export class Track {
* The minimum time a runner should take to run a lap on this track.
* Will be used for fraud detection.
*/
@Column()
@Column({ nullable: true })
@IsInt()
@IsOptional()
@IsPositive()
minimumLapTime?: number;
/**