chore: whopps

This commit is contained in:
Barış Soner Uşaklı
2023-05-01 14:22:56 -04:00
parent 83fca31628
commit ec0da196d8

View File

@@ -22,7 +22,6 @@ const upload_url = nconf.get('upload_url');
topicsController.get = async function getTopic(req, res, next) {
const tid = req.params.topic_id;
throw new Error('db connection not found');
if (
(req.params.post_index && !utils.isNumber(req.params.post_index) && req.params.post_index !== 'unread') ||
!utils.isNumber(tid)