Patch 0.0.2 #9

Merged
niggl merged 69 commits from dev into main 2021-02-03 17:24:35 +00:00
2 changed files with 9 additions and 10 deletions
Showing only changes of commit 1d1fa50327 - Show all commits

View File

@ -1,23 +1,16 @@
import {
IsArray,
IsInt
IsArray
} from "class-validator";
import { DistanceDonation } from './DistanceDonation';
import { Runner } from './Runner';
/**
* Defines the certificate runner class (from which the runner certificates get generated).
*/
export class CertificateRunner extends Runner {
/**
* The total distance ran by the runner.
*/
@IsInt()
distance: number;
/**
* Array containing all distance donations associated with the runner.
*/
@IsArray()
distanceDonations: any[];
distanceDonations: DistanceDonation[];
}

View File

@ -38,4 +38,10 @@ export class Runner {
*/
@IsObject()
group: RunnerGroup;
/**
* The total distance ran by the runner.
*/
@IsInt()
distance: number;
}