top limit maitnained

pull/24/head
ahmed.mujtaba 2026-08-20 18:40:24 +05:00
parent b79009679c
commit 40edc092a3
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ import * as tasksApi from '../api/tasks'
import { JOB_STATUSES } from '../api/jobs' import { JOB_STATUSES } from '../api/jobs'
import { empTypes, fmtShort } from '../data/seed' import { empTypes, fmtShort } from '../data/seed'
const JOB_LIMIT = 200 // Must stay within GET /jobs/fetch `top` max (le=100); 200 returns 422 and an empty board.
const JOB_LIMIT = 100
async function fetchJobs() { async function fetchJobs() {
const res = await jobsApi.list({ top: JOB_LIMIT }) const res = await jobsApi.list({ top: JOB_LIMIT })