Skip to content

Commit

Permalink
fix: exclude closed discussions from api response
Browse files Browse the repository at this point in the history
  • Loading branch information
mistakia committed Mar 17, 2024
1 parent e019141 commit 54fd94b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/routes/github/discussions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 54fd94b

Please sign in to comment.