diff options
author | Raphael Kabo <raphaelkabo@hey.com> | 2021-02-07 13:43:25 +0000 |
---|---|---|
committer | Raphael Kabo <raphaelkabo@hey.com> | 2021-02-07 13:43:25 +0000 |
commit | ab5fda186b0deb7dafe790e68f7db3194d457f46 (patch) | |
tree | 134894c97bc8f022ccc0b89a1539d784103a337c /routes.js | |
parent | a6b174af212b8596b68a10a6e62a4910df29bc18 (diff) |
Bugfixes following Handlebars update
Diffstat (limited to 'routes.js')
-rwxr-xr-x | routes.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -327,6 +327,7 @@ router.get('/:eventID', (req, res) => { Event.findOne({ id: req.params.eventID }) + .lean() // Required, see: https://stackoverflow.com/questions/59690923/handlebars-access-has-been-denied-to-resolve-the-property-from-because-it-is .populate('eventGroup') .then((event) => { if (event) { @@ -503,6 +504,7 @@ router.get('/group/:eventGroupID', (req, res) => { EventGroup.findOne({ id: req.params.eventGroupID }) + .lean() // Required, see: https://stackoverflow.com/questions/59690923/handlebars-access-has-been-denied-to-resolve-the-property-from-because-it-is .then(async (eventGroup) => { if (eventGroup) { let parsedDescription = marked(eventGroup.description); |