chore: lint

This commit is contained in:
Julian Lam
2024-03-06 14:59:49 -05:00
parent 4c2cbb5b12
commit 0c2cfbe7a0
4 changed files with 2 additions and 6 deletions

View File

@@ -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);