fix: increase task limit to 500 (#19424)
parent
543bbd12c1
commit
63047111c0
|
@ -4,3 +4,4 @@ export const LIMIT = 100
|
|||
export const BUCKET_LIMIT = 100
|
||||
export const RULE_LIMIT = 100
|
||||
export const DASHBOARD_LIMIT = 100
|
||||
export const TASK_LIMIT = 500
|
||||
|
|
|
@ -48,6 +48,9 @@ import {checkTaskLimits} from 'src/cloud/actions/limits'
|
|||
import {getOrg} from 'src/organizations/selectors'
|
||||
import {getStatus} from 'src/resources/selectors'
|
||||
|
||||
// Types
|
||||
import {TASK_LIMIT} from 'src/resources/constants'
|
||||
|
||||
type Action = TaskAction | ExternalActions | ReturnType<typeof getTasks>
|
||||
type ExternalActions = NotifyAction | ReturnType<typeof checkTaskLimits>
|
||||
|
||||
|
@ -64,7 +67,7 @@ export const getTasks = () => async (
|
|||
|
||||
const org = getOrg(state)
|
||||
|
||||
const resp = await api.getTasks({query: {orgID: org.id}})
|
||||
const resp = await api.getTasks({query: {orgID: org.id, limit: TASK_LIMIT}})
|
||||
|
||||
if (resp.status !== 200) {
|
||||
throw new Error(resp.data.message)
|
||||
|
|
Loading…
Reference in New Issue