From ed3f32d4a36f2ce8770790ccb6380cefc2b25ab1 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Fri, 8 Apr 2022 06:08:49 +1000 Subject: [PATCH] bugfix JIT built catalogs not having json --- models/pages/catalog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/pages/catalog.js b/models/pages/catalog.js index 6dffe9e5..2362b317 100644 --- a/models/pages/catalog.js +++ b/models/pages/catalog.js @@ -4,9 +4,9 @@ const { buildCatalog } = require(__dirname+'/../../helpers/tasks.js'); module.exports = async (req, res, next) => { - let html; + let html, json; try { - ({ html } = await buildCatalog({ board: res.locals.board })); + ({ html, json } = await buildCatalog({ board: res.locals.board })); } catch (err) { return next(err); }