Skip to content

Commit

Permalink
Merge pull request #229 from openstad/bugfix/site-config-missing
Browse files Browse the repository at this point in the history
fix: add includeSite scope to always have a site object. Needed for v…
  • Loading branch information
Badmuts authored Jun 16, 2022
2 parents 3c77997 + 29ea4f3 commit 8ef6865
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/api/idea.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ router.route('/:ideaId(\\d+)')
if (req.query.includePoll) { // TODO: naar poll hooks
if (found.poll) found.poll.countVotes(!req.query.withVotes);
}
found.site = req.site;
req.results = found;
next();
})
Expand Down

0 comments on commit 8ef6865

Please sign in to comment.