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
|
nullable: true
|
||||||
title:
|
title:
|
||||||
type: string
|
type: string
|
||||||
|
topicCount:
|
||||||
|
type: number
|
||||||
categories:
|
categories:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
|||||||
@@ -122,7 +122,6 @@ controller.list = async function (req, res) {
|
|||||||
data.title = translator.escape(data.name);
|
data.title = translator.escape(data.name);
|
||||||
data.breadcrumbs = helpers.buildBreadcrumbs([]);
|
data.breadcrumbs = helpers.buildBreadcrumbs([]);
|
||||||
|
|
||||||
console.log(data.topicCount, topicsPerPage);
|
|
||||||
const pageCount = Math.max(1, Math.ceil(data.topicCount / topicsPerPage));
|
const pageCount = Math.max(1, Math.ceil(data.topicCount / topicsPerPage));
|
||||||
data.pagination = pagination.create(page, pageCount, req.query);
|
data.pagination = pagination.create(page, pageCount, req.query);
|
||||||
helpers.addLinkTags({
|
helpers.addLinkTags({
|
||||||
|
|||||||
Reference in New Issue
Block a user