diff --git a/src/models/actions/create/CreateTrackScan.ts b/src/models/actions/create/CreateTrackScan.ts index 7befe33..80ad4d6 100644 --- a/src/models/actions/create/CreateTrackScan.ts +++ b/src/models/actions/create/CreateTrackScan.ts @@ -1,5 +1,5 @@ import { IsInt, IsOptional, IsPositive } from 'class-validator'; -import { NotAcceptableError } from 'routing-controllers'; +import { BadRequestError } from 'routing-controllers'; import { getConnection } from 'typeorm'; import { RunnerCardNotFoundError } from '../../../errors/RunnerCardErrors'; import { RunnerNotFoundError } from '../../../errors/RunnerErrors'; @@ -70,7 +70,7 @@ export class CreateTrackScan { */ public async getStation(): Promise { if (!this.station) { - throw new NotAcceptableError("You are missing the station's id!") + throw new BadRequestError("You are missing the station's id!") } const station = await getConnection().getRepository(ScanStation).findOne({ id: this.station }, { relations: ["track"] }); if (!station) {