parent
b267d87ba6
commit
aef2f9562a
@ -67,6 +67,10 @@ export class TrackController {
|
||||
throw new TrackNotFoundError();
|
||||
}
|
||||
|
||||
if(oldTrack.id != track.id){
|
||||
throw new NotAcceptableError("The id's don't match!");
|
||||
}
|
||||
|
||||
await this.trackRepository.update(oldTrack, track);
|
||||
return track;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user