Skip to content

Commit

Permalink
fix: limit in search
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragonprod committed Dec 14, 2023
1 parent 6f5dc92 commit 41f24a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/students/StudentsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function StudentsTable({
const { data } = await supabase
.schema("rtu_mirea")
.rpc("search_students", {
_limit: 1000,
_limit: 2000,
_offset: 0,
_department: department ?? undefined,
_academic_groups:
Expand Down Expand Up @@ -126,7 +126,7 @@ export default function StudentsTable({
}
}}
tableOptions={{
pageCount: Math.ceil(length ?? 0 / 10),
pageCount: Math.ceil(data?.length ?? 0 / 10),
}}
/>
)
Expand Down

0 comments on commit 41f24a6

Please sign in to comment.