bugfix JIT built catalogs not having json

indiachan-spamvector
Thomas Lynch 2 years ago
parent eb8a97b954
commit ed3f32d4a3
  1. 4
      models/pages/catalog.js

@ -4,9 +4,9 @@ const { buildCatalog } = require(__dirname+'/../../helpers/tasks.js');
module.exports = async (req, res, next) => { module.exports = async (req, res, next) => {
let html; let html, json;
try { try {
({ html } = await buildCatalog({ board: res.locals.board })); ({ html, json } = await buildCatalog({ board: res.locals.board }));
} catch (err) { } catch (err) {
return next(err); return next(err);
} }

Loading…
Cancel
Save