Renamed the update>Entity Name>() functiuons to update()

ref #76
This commit is contained in:
2021-01-10 16:35:52 +01:00
parent e6b9d4f273
commit 3f7b0f6563
19 changed files with 20 additions and 20 deletions

View File

@@ -96,7 +96,7 @@ export class ScanController {
throw new ScanIdsNotMatchingError();
}
await this.scanRepository.save(await scan.updateScan(oldScan));
await this.scanRepository.save(await scan.update(oldScan));
return (await this.scanRepository.findOne({ id: id }, { relations: ['runner', 'track', 'runner.scans', 'runner.scans.track', 'card', 'station'] })).toResponse();
}
@@ -119,7 +119,7 @@ export class ScanController {
throw new ScanIdsNotMatchingError();
}
await this.trackScanRepository.save(await scan.updateScan(oldScan));
await this.trackScanRepository.save(await scan.update(oldScan));
return (await this.scanRepository.findOne({ id: id }, { relations: ['runner', 'track', 'runner.scans', 'runner.scans.track', 'card', 'station'] })).toResponse();
}