fix(backend): text in foutmelding

This commit is contained in:
Gerald Schmittinger 2025-05-16 13:10:55 +02:00
parent 9d01621c86
commit 6cf4f12f2a
2 changed files with 5 additions and 3 deletions

View file

@ -69,7 +69,7 @@ function createLearningObject(metadata: LearningObjectMetadata, content: Buffer,
};
if (!metadata.target_ages || metadata.target_ages.length === 0) {
throw new BadRequestException('errorTargetAgesMandatory');
throw new BadRequestException('targetAgesMandatory');
}
const learningObject = learningObjectRepo.create({