-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/be/ttl, #764 #835
Feat/be/ttl, #764 #835
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,10 @@ | |
checkController.deleteChecksByTeamId | ||
); | ||
|
||
router.put( | ||
"/ttl", | ||
isAllowed(["admin", "superadmin"]), | ||
Check failure Code scanning / CodeQL Missing rate limiting High
This route handler performs
authorization Error loading related location Loading |
||
checkController.updateChecksTTL | ||
); | ||
Comment on lines
+29
to
+33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yo, the new The implementation of the But hold up, the static analysis tool caught somethin' - we're missin' some rate limitin' on this bad boy. We gotta make sure it ain't gettin' hit too hard, or it might just puke all over the place, like mom's spaghetti on a sweater, ya know what I'm sayin'? Yo, lemme help ya out with slappin' a rate limiter on there real quick, just say the word! ToolsGitHub Check: CodeQL
|
||
|
||
module.exports = router; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hold up, dawg! We got a duplicate export in the house! 😵
Looks like
updateChecksTTL
is bein' exported twice, once at line 100 and again here. That ain't gonna fly, cuz it's just gonna cause mad confusion, ya feel me?Let's keep it clean and remove this duplicate export, aight? Here's the diff to fix it:
- updateChecksTTL,
Committable suggestion