|
|
|
@ -44,6 +44,11 @@ export class UploadService { |
|
|
|
let race = await this.racesService.findOneBySeasonAndMapUID(body.seasonId, replay.mapUID) |
|
|
|
console.log(race); |
|
|
|
|
|
|
|
if(race.endDate.getTime() < Date.now()) { |
|
|
|
console.log("Too Late!") |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
let result = await this.raceResultsService.create(race.id, currentRacer.id, replay.bestTime, file.path); |
|
|
|
console.log(result); |
|
|
|
|
|
|
|
|