correction of max_limit
This commit is contained in:
@@ -31,7 +31,7 @@ comRouter.get("/", async (req, res) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const { id: matchId } = paramsResult.data;
|
const { id: matchId } = paramsResult.data;
|
||||||
const { limit = 10 } = queryResult.data;
|
const { limit = MAX_LIMIT } = queryResult.data;
|
||||||
const safeLimit = Math.min(limit, MAX_LIMIT);
|
const safeLimit = Math.min(limit, MAX_LIMIT);
|
||||||
|
|
||||||
const results = await db
|
const results = await db
|
||||||
|
|||||||
Reference in New Issue
Block a user