fix missing req. in req.params.thread_id