test: fix spec, remove log

This commit is contained in:
Barış Soner Uşaklı
2026-02-09 18:23:29 -05:00
parent 4edec6aa19
commit 05dd46c31f
2 changed files with 2 additions and 1 deletions

View File

@@ -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:

View File

@@ -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({