Fix bug api expose too much information

This commit is contained in:
schooltechx 2023-04-08 12:22:26 +07:00
parent e5a3f1793f
commit 3ef4e0c6eb
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ export const GET: RequestHandler = async ({url}: RequestEvent) => {
return minimal
})
if(limit>0){
ex = exams.slice(0,limit)
ex = ex.slice(0,limit)
}
return json(ex)
}

View file

@ -13,7 +13,7 @@ export const GET: RequestHandler = async ({url}: RequestEvent) => {
return minimal
})
if(limit>0){
ex = exams.slice(0,limit)
ex = ex.slice(0,limit)
}
return json(ex)
}