Track deletion now recognizes associated stations

ref #67
This commit is contained in:
2021-01-07 18:53:09 +01:00
parent 9b9ee70288
commit 9776a35f9f
3 changed files with 22 additions and 4 deletions

View File

@@ -33,4 +33,12 @@ export class TrackLapTimeCantBeNegativeError extends NotAcceptableError {
@IsString()
message = "The minimum lap time you provided is negative - That isn't possible. \n If you wanted to disable it: Just set it to 0/null."
}
export class TrackHasScanStationsError extends NotAcceptableError {
@IsString()
name = "TrackHasScanStationsError"
@IsString()
message = "This track still has stations associated with it. \n If you want to delete this track with all it's stations and scans add `?force` to your query."
}