correction of max_limit

This commit is contained in:
2026-02-07 22:00:04 -06:00
parent c10556d306
commit e8c1a5e59b

View File

@@ -31,7 +31,7 @@ comRouter.get("/", async (req, res) => {
try {
const { id: matchId } = paramsResult.data;
const { limit = 10 } = queryResult.data;
const { limit = MAX_LIMIT } = queryResult.data;
const safeLimit = Math.min(limit, MAX_LIMIT);
const results = await db