From 78cb14bbd24f17e2297e55b1695a22dd66f32a84 Mon Sep 17 00:00:00 2001 From: b1ek Date: Mon, 27 Feb 2023 11:33:08 +1000 Subject: [PATCH] remove hidden guestbook entries from homepage --- routes/homepage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/homepage.js b/routes/homepage.js index 3ddd233..e8057a7 100644 --- a/routes/homepage.js +++ b/routes/homepage.js @@ -5,7 +5,8 @@ async function handler(req, res) { let gb_entries = await Sequelize.Guestbook.findAll({ limit: 5, - order: [['id', 'DESC']] + order: [['id', 'DESC']], + where: { hidden: false } }); res.send(