Moved all update() and toEntity action model functions to async

ref #76
This commit is contained in:
2021-01-10 16:53:59 +01:00
parent 3f7b0f6563
commit 3deae2bfeb
5 changed files with 5 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ export class UpdateTrack {
* Update a Track entity based on this.
* @param track The track that shall be updated.
*/
public update(track: Track): Track {
public async update(track: Track): Promise<Track> {
track.name = this.name;
track.distance = this.distance;
track.minimumLapTime = this.minimumLapTime;