Skip to content

Commit b75d942

Browse files
committed
remove count_only as a parameter
1 parent 3af87be commit b75d942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/cve.controller/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ router.get('/cve_count',
320320
}
321321
}
322322
*/
323-
query().custom((query) => { return mw.validateQueryParameterNames(query, ['state', 'count_only']) }),
323+
query().custom((query) => { return mw.validateQueryParameterNames(query, ['state']) }),
324324
query(['state']).optional().isString().trim().customSanitizer(val => { return val.toUpperCase() }).isIn(CHOICES).withMessage(errorMsgs.CVE_FILTERED_STATES),
325325
parseError,
326326
parseGetParams,

0 commit comments

Comments
 (0)