From 54fd94b729b31447e5bf5484506b835daf17e737 Mon Sep 17 00:00:00 2001 From: mistakia <1823355+mistakia@users.noreply.github.com> Date: Sat, 16 Mar 2024 23:52:51 -0400 Subject: [PATCH] fix: exclude closed discussions from api response --- api/routes/github/discussions.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/api/routes/github/discussions.mjs b/api/routes/github/discussions.mjs index 98cad91e..99a3feec 100644 --- a/api/routes/github/discussions.mjs +++ b/api/routes/github/discussions.mjs @@ -12,6 +12,7 @@ router.get('/nano-community', async (req, res) => { const discussions = await db('github_discussions') .where('category_id', 'MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMyOTA1MTIz') // proposals category + .where('closed', '!=', 1) .orderBy('created_at', 'desc') .limit(20) const ids = discussions.map((i) => i.id)