@@ -75,7 +75,7 @@ export class TrackController {
|
||||
if (oldTrack.id != updateTrack.id) {
|
||||
throw new TrackIdsNotMatchingError();
|
||||
}
|
||||
await this.trackRepository.save(await updateTrack.updateTrack(oldTrack));
|
||||
await this.trackRepository.save(await updateTrack.update(oldTrack));
|
||||
|
||||
return new ResponseTrack(await this.trackRepository.findOne({ id: id }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user