Max limit of 10 for rahvatarkus archive API call
This commit is contained in:
parent
1674cdd726
commit
f3ec1ff41d
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import { eq, sql } from 'drizzle-orm';
|
|||
import type { Question } from '$lib/types';
|
||||
|
||||
export async function GET({ params }) {
|
||||
const limit = parseInt(params.limit) || 10;
|
||||
const limit = Math.min(parseInt(params.limit) || 10, 10);
|
||||
const offset = parseInt(params.offset) || 0;
|
||||
|
||||
// Get total count
|
||||
|
|
Loading…
Add table
Reference in a new issue