hotfix(dataset): correct embargo date validation message

- Corrected the embargo date validation message in both the DatasetController and dataset validator to ensure consistency.
- Updated the `embargo_date.date.afterOrEqual` message to dynamically display the correct date (10 days from now) in the desired format.
This commit is contained in:
Kaimbacher 2025-04-09 15:59:22 +02:00
parent 106f8d5f27
commit dbd2bf2e9d
3 changed files with 3 additions and 1 deletions

View file

@ -806,6 +806,8 @@ export default class DatasetController {
'files.array.minLength': 'At least {{ min }} file upload is required.',
'files.*.size': 'file size is to big',
'files.*.extnames': 'file extension is not supported',
'embargo_date.date.afterOrEqual': `Embargo date must be on or after ${dayjs().add(10, 'day').format('DD.MM.YYYY')}`,
};
// public async release({ params, view }) {