Skip to content

Commit

Permalink
fix indexParam handled
Browse files Browse the repository at this point in the history
  • Loading branch information
jupe committed Mar 25, 2024
1 parent 3be5674 commit a7b6ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/builds.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class BuildsController extends DefaultController {
constructor() { super('Build'); }

static indexParam(req, res, next, Index) {
if (!Number.isNaN(Index)) {
if (Number.isInteger(Number(Index))) {
req.Index = Number.parseInt(Index, 10);
return next();
}
Expand Down

0 comments on commit a7b6ca9

Please sign in to comment.