We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ccca1 commit c65edc3Copy full SHA for c65edc3
src/journey/hobbies/me/generate_overview.js
@@ -29,9 +29,9 @@ const markdown = require('markdown-it')();
29
const staticHandlerInstance = require('../../../lib/StaticHandler').getHandler();
30
const StaticDocumentTypes = require('../../../lib/StaticDocumentTypes');
31
32
-const generateOverview = (req, res, next) => {
+const generateOverview = async (req, res, next) => {
33
try {
34
- const staticContent = staticHandlerInstance.findStatic(StaticDocumentTypes.KNOWING_ME);
+ const staticContent = await staticHandlerInstance.findStatic(StaticDocumentTypes.KNOWING_ME);
35
res.contentType = 'text/html';
36
res.header('content-type', 'text/html');
37
res.send(200, renderer.render('pages/me/me_index.njk', {
0 commit comments