Skip to content

Commit

Permalink
Merge pull request #1252 from CVEProject/jd-1251
Browse files Browse the repository at this point in the history
Resolves #1251 corrected validateDatePublic middleware paths
  • Loading branch information
david-rocca authored Jul 16, 2024
2 parents 64df871 + f60bc45 commit 186264a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/cve.controller/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 186264a

Please sign in to comment.