More scan request optimizations

This commit is contained in:
Nicolai Ort 2023-04-15 20:51:13 +02:00
parent 8007117434
commit 7c4ff42a3b
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ export class ScanController {
@OpenAPI({ description: 'Lists all scans (normal or track) from all runners. <br> This includes the scan\'s runner\'s distance ran.' })
async getAll() {
let responseScans: ResponseScan[] = new Array<ResponseScan>();
const scans = await this.scanRepository.find({ relations: ['runner', 'track', 'runner.group', 'card', 'station'] });
const scans = await this.scanRepository.find({ relations: ['runner', 'track'] });
scans.forEach(scan => {
responseScans.push(scan.toResponse());
});