Skip to content

Conversation

@prathambatra
Copy link
Contributor

Signed-off-by: prathambatra batrapratham999@gmail.com
fixes #345

Signed-off-by: prathambatra <batrapratham999@gmail.com>
Signed-off-by: prathambatra <batrapratham999@gmail.com>
routes/root.js Outdated
})

route.get('/leaderboard/:year?', async (req, res) => {
let { year } = req.params
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let { year = '2020' } = req.params

just do this here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't forget to run and test the solution.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done..

Signed-off-by: prathambatra <batrapratham999@gmail.com>
@0xnmn 0xnmn merged commit 35c6d5a into coding-blocks:master May 23, 2020
@boss-contributions-bot
Copy link

Congratualtions @prathambatra, your pull request is merged! 🎉

Thanks for your contributions and participating in BOSS 2020. 🙌

You can claim your bounty points here. 💰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On clicking Leaderboard on the boss website throws error

2 participants