Skip to content

Commit

Permalink
Merge pull request #25 from eamoranto/bugfixes
Browse files Browse the repository at this point in the history
added res.locals.LeaderboardTopic to line 43 in leaderboardController.js
  • Loading branch information
skang1004 authored Feb 27, 2020
2 parents f268ff8 + bf1ec46 commit 1ebf72d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/controllers/leaderboardController.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ leaderboardController.byTopic = (req, res, next) => {
const values = [topic];

db.query(text, values)
.then((result) =>{
.then((data) =>{
res.locals.LeaderboardTopic = data.rows;
return next();
})
.catch(err =>{
Expand Down

0 comments on commit 1ebf72d

Please sign in to comment.