mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 11:01:20 +01:00
test: fix spec, remove log
This commit is contained in:
@@ -45,6 +45,8 @@ get:
|
||||
nullable: true
|
||||
title:
|
||||
type: string
|
||||
topicCount:
|
||||
type: number
|
||||
categories:
|
||||
type: array
|
||||
items:
|
||||
|
||||
@@ -122,7 +122,6 @@ controller.list = async function (req, res) {
|
||||
data.title = translator.escape(data.name);
|
||||
data.breadcrumbs = helpers.buildBreadcrumbs([]);
|
||||
|
||||
console.log(data.topicCount, topicsPerPage);
|
||||
const pageCount = Math.max(1, Math.ceil(data.topicCount / topicsPerPage));
|
||||
data.pagination = pagination.create(page, pageCount, req.query);
|
||||
helpers.addLinkTags({
|
||||
|
||||
Reference in New Issue
Block a user