remove hidden guestbook entries from homepage

This commit is contained in:
b1ek 2023-02-27 11:33:08 +10:00
parent 8b66513869
commit 78cb14bbd2
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 2 additions and 1 deletions

View File

@ -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(