Skip to content

Commit 9490719

Browse files
committed
Merge branch 'dr_cb_integrate_users' of github.com:CVEProject/cve-services into dr_cb_integrate_users
* 'dr_cb_integrate_users' of github.com:CVEProject/cve-services: Fixed registry get users middleware
2 parents 6714271 + b41ff6b commit 9490719

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controller/user.controller/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ router.get('/registry/users',
1414
mw.useRegistry(),
1515
mw.validateUser,
1616
mw.onlySecretariat,
17+
query().custom((query) => { return mw.validateQueryParameterNames(query, ['page']) }),
1718
query(['page']).optional().isInt({ min: CONSTANTS.PAGINATOR_PAGE }),
18-
query(['page', 'registry']).custom((val) => { return mw.containsNoInvalidCharacters(val) }),
19+
query(['page']).custom((val) => { return mw.containsNoInvalidCharacters(val) }),
1920
parseError,
2021
parseGetParams,
2122
controller.ALL_USERS

0 commit comments

Comments
 (0)