fix: raise task fetch limit to 1000 — Jeanne/Christine showed 0 tasks because terminal tasks with old dates filled the 200-task limit before NOT_STARTED tasks

This commit is contained in:
lorentz 2026-04-09 21:00:56 +00:00
parent 0c6fccadd6
commit d109a5f73a
2 changed files with 2 additions and 2 deletions

View file

@ -462,7 +462,7 @@ export function TasksClient({ initialTasks, currentUserId, isPrivileged, users }
const fetchTasks = useCallback(async (uid: string, cid?: string) => {
setLoadingTasks(true)
try {
const params = new URLSearchParams({ limit: '200' })
const params = new URLSearchParams({ limit: '1000' })
params.set('userId', uid)
if (cid) params.set('clientId', cid)
const res = await fetch(`/api/tasks?${params}`)

View file

@ -62,7 +62,7 @@ export default async function TasksPage() {
},
},
orderBy: { dueDate: 'asc' },
take: 100,
take: 1000,
}),
isPrivileged
? prisma.user.findMany({