Skip to content

Commit

Permalink
Another bugfix, /topics/find-all-proyectos now returns only topics th…
Browse files Browse the repository at this point in the history
…at are published, doesnt have a deletedAt and is a proyecto
  • Loading branch information
guillecro committed Sep 28, 2023
1 parent 9b11f77 commit 49dac18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api-v2/topics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ app.get('/topics/tags',
})

app.get('/topics/find-all-proyectos', (req, res, next) => {
apiV1.topic.search({'attrs.state': 'proyecto', 'deletedAt': { '$exists': false } },(err, topics) => res.status(200).json(topics))
apiV1.topic.search({'attrs.state': 'proyecto', 'deletedAt': { '$exists': false }, 'publishedAt': { $ne: null }},(err, topics) => res.status(200).json(topics))
})

app.get('/topics/:id',
Expand Down

0 comments on commit 49dac18

Please sign in to comment.