diff --git a/src/errors/PermissionErrors.ts b/src/errors/PermissionErrors.ts index fdd7215..b3c406d 100644 --- a/src/errors/PermissionErrors.ts +++ b/src/errors/PermissionErrors.ts @@ -21,7 +21,7 @@ export class PermissionIdsNotMatchingError extends NotAcceptableError { name = "PermissionIdsNotMatchingError" @IsString() - message = "The id's don't match!! \n And if you wanted to change a permission's id: This isn't allowed!" + message = "The ids don't match! \n And if you wanted to change a permission's id: This isn't allowed!" } /** diff --git a/src/errors/RunnerErrors.ts b/src/errors/RunnerErrors.ts index b73b593..6ef12c5 100644 --- a/src/errors/RunnerErrors.ts +++ b/src/errors/RunnerErrors.ts @@ -21,7 +21,7 @@ export class RunnerIdsNotMatchingError extends NotAcceptableError { name = "RunnerIdsNotMatchingError" @IsString() - message = "The id's don't match!! \n And if you wanted to change a runner's id: This isn't allowed!" + message = "The ids don't match! \n And if you wanted to change a runner's id: This isn't allowed!" } /** diff --git a/src/errors/RunnerOrganisationErrors.ts b/src/errors/RunnerOrganisationErrors.ts index db524df..b004acf 100644 --- a/src/errors/RunnerOrganisationErrors.ts +++ b/src/errors/RunnerOrganisationErrors.ts @@ -21,7 +21,7 @@ export class RunnerOrganisationIdsNotMatchingError extends NotAcceptableError { name = "RunnerOrganisationIdsNotMatchingError" @IsString() - message = "The id's don't match!! \n And if you wanted to change a runner organisation's id: This isn't allowed!" + message = "The ids don't match! \n And if you wanted to change a runner organisation's id: This isn't allowed!" } /** diff --git a/src/errors/TrackErrors.ts b/src/errors/TrackErrors.ts index 6c0d803..7d4cfa9 100644 --- a/src/errors/TrackErrors.ts +++ b/src/errors/TrackErrors.ts @@ -1,9 +1,8 @@ -import { JsonController, Param, Body, Get, Post, Put, Delete, NotFoundError, OnUndefined, NotAcceptableError } from 'routing-controllers'; -import { IsInt, IsNotEmpty, IsPositive, IsString } from 'class-validator'; +import { IsString } from 'class-validator'; +import { NotAcceptableError, NotFoundError } from 'routing-controllers'; /** * Error to throw when a track couldn't be found. - * Implemented this ways to work with the json-schema conversion for openapi. */ export class TrackNotFoundError extends NotFoundError { @IsString() @@ -16,12 +15,11 @@ export class TrackNotFoundError extends NotFoundError { /** * Error to throw when two tracks' ids don't match. * Usually occurs when a user tries to change a track's id. - * Implemented this ways to work with the json-schema conversion for openapi. */ export class TrackIdsNotMatchingError extends NotAcceptableError { @IsString() name = "TrackIdsNotMatchingError" @IsString() - message = "The id's don't match!! \n And if you wanted to change a track's id: This isn't allowed" + message = "The ids don't match! \n And if you wanted to change a track's id: This isn't allowed" } \ No newline at end of file