Merge for alpha 0.0.6 #61

Merged
niggl merged 39 commits from dev into main 2020-12-30 17:58:27 +00:00
Showing only changes of commit 35dbfeb5e7 - Show all commits

View File

@ -40,6 +40,12 @@ export class ResponseStatsRunner {
@IsInt()
distance: number;
/**
* The runner's currently collected donations.
*/
@IsInt()
donationAmount: number;
/**
* The runner's group.
*/
@ -55,6 +61,7 @@ export class ResponseStatsRunner {
this.middlename = runner.middlename;
this.lastname = runner.lastname;
this.distance = runner.scans.filter(scan => { scan.valid === true }).reduce((sum, current) => sum + current.distance, 0);
this.donationAmount = runner.distanceDonationAmount;
this.group = runner.group;
}
}