|
|
@ -48,7 +48,7 @@ topicsController.get = function(req, res, next) {
|
|
|
|
return next(new Error('Topic deleted'), null);
|
|
|
|
return next(new Error('Topic deleted'), null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
topicData.currentPage = page;
|
|
|
|
next(err, topicData);
|
|
|
|
next(err, topicData);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -176,7 +176,6 @@ topicsController.get = function(req, res, next) {
|
|
|
|
active: x === parseInt(page, 10)
|
|
|
|
active: x === parseInt(page, 10)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
res.render('topic', data);
|
|
|
|
res.render('topic', data);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|