From 49dac18184e8814644f9943613eb0535e0815c82 Mon Sep 17 00:00:00 2001 From: Guillermo Croppi Date: Thu, 28 Sep 2023 15:28:54 -0300 Subject: [PATCH] Another bugfix, /topics/find-all-proyectos now returns only topics that are published, doesnt have a deletedAt and is a proyecto --- lib/api-v2/topics/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api-v2/topics/index.js b/lib/api-v2/topics/index.js index a4b5e9b..da4675d 100644 --- a/lib/api-v2/topics/index.js +++ b/lib/api-v2/topics/index.js @@ -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',