top limit maitnained
parent
b79009679c
commit
40edc092a3
|
|
@ -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 })
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue