This commit is contained in:
Bastian Wagner
2026-02-20 10:39:11 +01:00
parent 4e051a1f40
commit affea90e91
7 changed files with 10 additions and 10 deletions

View File

@@ -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);