mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 09:56:16 +02:00
chore: lint
This commit is contained in:
@@ -9,7 +9,7 @@ const helpers = require('../helpers');
|
||||
|
||||
const controller = module.exports;
|
||||
|
||||
controller.list = async function (req, res, next) {
|
||||
controller.list = async function (req, res) {
|
||||
const { topicsPerPage } = await user.getSettings(req.uid);
|
||||
const page = parseInt(req.query.page, 10) || 1;
|
||||
const start = Math.max(0, (page - 1) * topicsPerPage);
|
||||
|
||||
Reference in New Issue
Block a user