-
Notifications
You must be signed in to change notification settings - Fork 6
PM-2614 - Module updates -> dev #32
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
Changes from 5 commits
93e0da8
0ffaffb
0d99cea
b8ccdfa
663e1e8
6530304
611ee56
de2bc0d
d4aa9b4
127cce1
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 |
|---|---|---|
|
|
@@ -74,7 +74,7 @@ searchChallengeTracks.schema = { | |
| isActive: Joi.boolean(), | ||
| abbreviation: Joi.string(), | ||
| legacyId: Joi.number().integer().positive(), | ||
| track: Joi.string().valid(_.values(ChallengeTrackEnum)), | ||
| track: Joi.string().valid(..._.values(ChallengeTrackEnum)), | ||
|
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. [ |
||
| }), | ||
| }; | ||
|
|
||
|
|
@@ -140,7 +140,7 @@ createChallengeTrack.schema = { | |
| isActive: Joi.boolean().required(), | ||
| abbreviation: Joi.string().required(), | ||
| legacyId: Joi.number().integer().positive(), | ||
| track: Joi.string().valid(_.values(ChallengeTrackEnum)), | ||
| track: Joi.string().valid(..._.values(ChallengeTrackEnum)), | ||
|
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. [ |
||
| }) | ||
| .required(), | ||
| }; | ||
|
|
@@ -209,7 +209,7 @@ fullyUpdateChallengeTrack.schema = { | |
| isActive: Joi.boolean().required(), | ||
| abbreviation: Joi.string().required(), | ||
| legacyId: Joi.number().integer().positive(), | ||
| track: Joi.string().valid(_.values(ChallengeTrackEnum)), | ||
| track: Joi.string().valid(..._.values(ChallengeTrackEnum)), | ||
|
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. [ |
||
| }) | ||
| .required(), | ||
| }; | ||
|
|
@@ -251,7 +251,7 @@ partiallyUpdateChallengeTrack.schema = { | |
| isActive: Joi.boolean(), | ||
| abbreviation: Joi.string(), | ||
| legacyId: Joi.number().integer().positive(), | ||
| track: Joi.string().valid(_.values(ChallengeTrackEnum)), | ||
| track: Joi.string().valid(..._.values(ChallengeTrackEnum)), | ||
|
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. [ |
||
| }) | ||
| .required(), | ||
| }; | ||
|
|
||
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.
[❗❗
correctness]Removing the
"*"wildcard fromapp.usemeans that this middleware will now handle all requests, not just those that don't match any defined route. This could lead to unexpected behavior if there are other middlewares or routes defined after this point that should be executed. Consider whether this change is intentional and if it aligns with the desired routing logic.