@@ -6,7 +6,7 @@ export class AddressWrongTypeError extends NotAcceptableError {
|
||||
name = "AddressWrongTypeError"
|
||||
|
||||
@IsString()
|
||||
message = "The address must be either a existing address, new address or a existing adress's id. \n You provided a object of another type."
|
||||
message = "The address must be an existing adress's id. \n You provided a object of another type."
|
||||
}
|
||||
|
||||
export class AddressNotFoundError extends NotFoundError {
|
||||
|
||||
@@ -6,7 +6,7 @@ export class GroupContactWrongTypeError extends NotAcceptableError {
|
||||
name = "GroupContactWrongTypeError"
|
||||
|
||||
@IsString()
|
||||
message = "The groupContact must be either a existing groupContact, new groupContact or a existing adress's id. \n You provided a object of another type."
|
||||
message = "The groupContact must be an existing groupContact's id. \n You provided a object of another type."
|
||||
}
|
||||
|
||||
export class GroupContactNotFoundError extends NotFoundError {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
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 runner couldn't be found.
|
||||
|
||||
@@ -55,5 +55,5 @@ export class RunnerOrganisationWrongTypeError extends NotAcceptableError {
|
||||
name = "RunnerOrganisationWrongTypeError"
|
||||
|
||||
@IsString()
|
||||
message = "The runner organisation must be either a existing organisation, new organisation or a existing organisation's id. \n You provided a object of another type."
|
||||
message = "The runner organisation must be an existing organisation's id. \n You provided a object of another type."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user