Renaming
This commit is contained in:
@@ -12,7 +12,7 @@ export class CustomerService {
|
||||
throw new HttpException({ message: 'Der Benutzer ist nicht verfügbar.', field: 'user' }, HttpStatus.UNPROCESSABLE_ENTITY);
|
||||
}
|
||||
if (!data.name || data.name.length === 0) {
|
||||
throw new HttpException({ message: 'Der Name des Kunden ist erforderlich.', field: 'name' }, HttpStatus.UNPROCESSABLE_ENTITY);
|
||||
throw new HttpException({ message: 'Der Name des Mietern ist erforderlich.', field: 'name' }, HttpStatus.UNPROCESSABLE_ENTITY);
|
||||
}
|
||||
if (!data.system) {
|
||||
throw new HttpException({ message: 'Die Schließanlage ist nicht gefüllt.', field: 'system' }, HttpStatus.UNPROCESSABLE_ENTITY);
|
||||
|
||||
Reference in New Issue
Block a user