More scan request optimizations
This commit is contained in:
		@@ -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());
 | 
			
		||||
		});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user