Improved error handling for negative lap times

ref #71
This commit is contained in:
2021-01-03 17:21:53 +01:00
parent dcb791c9a2
commit 28c1b6d31d
5 changed files with 24 additions and 5 deletions

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;
/**