diff --git a/src/controller/cve.controller/index.js b/src/controller/cve.controller/index.js index dc33656b0..d7ae0f586 100644 --- a/src/controller/cve.controller/index.js +++ b/src/controller/cve.controller/index.js @@ -623,7 +623,7 @@ router.post('/cve/:id/cna', validateCveCnaContainerJsonSchema, validateUniqueEnglishEntry('cnaContainer.descriptions'), validateDescription(['cnaContainer.descriptions', 'cnaContainer.problemTypes[0].descriptions']), - validateDatePublic(['containers.cna.datePublic']), + validateDatePublic(['cnaContainer.datePublic']), param(['id']).isString().matches(CONSTANTS.CVE_ID_REGEX), parseError, parsePostParams, @@ -720,7 +720,7 @@ router.put('/cve/:id/cna', validateCveCnaContainerJsonSchema, validateUniqueEnglishEntry('cnaContainer.descriptions'), validateDescription(['cnaContainer.descriptions', 'cnaContainer.problemTypes[0].descriptions']), - validateDatePublic(['containers.cna.datePublic']), + validateDatePublic(['cnaContainer.datePublic']), param(['id']).isString().matches(CONSTANTS.CVE_ID_REGEX), parseError, parsePostParams,