More scan request optimizations
This commit is contained in:
parent
8007117434
commit
7c4ff42a3b
|
@ -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());
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue