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:
parent
0c6fccadd6
commit
d109a5f73a
2 changed files with 2 additions and 2 deletions
|
|
@ -462,7 +462,7 @@ export function TasksClient({ initialTasks, currentUserId, isPrivileged, users }
|
||||||
const fetchTasks = useCallback(async (uid: string, cid?: string) => {
|
const fetchTasks = useCallback(async (uid: string, cid?: string) => {
|
||||||
setLoadingTasks(true)
|
setLoadingTasks(true)
|
||||||
try {
|
try {
|
||||||
const params = new URLSearchParams({ limit: '200' })
|
const params = new URLSearchParams({ limit: '1000' })
|
||||||
params.set('userId', uid)
|
params.set('userId', uid)
|
||||||
if (cid) params.set('clientId', cid)
|
if (cid) params.set('clientId', cid)
|
||||||
const res = await fetch(`/api/tasks?${params}`)
|
const res = await fetch(`/api/tasks?${params}`)
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ export default async function TasksPage() {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
orderBy: { dueDate: 'asc' },
|
orderBy: { dueDate: 'asc' },
|
||||||
take: 100,
|
take: 1000,
|
||||||
}),
|
}),
|
||||||
isPrivileged
|
isPrivileged
|
||||||
? prisma.user.findMany({
|
? prisma.user.findMany({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue