mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
fix: retrieve the build org job state
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// @ts-nocheck
|
||||
import { transformToCamelCase } from '@/utils';
|
||||
import { useRequestQuery } from '../useQueryRequest';
|
||||
|
||||
/**
|
||||
@@ -7,9 +8,9 @@ import { useRequestQuery } from '../useQueryRequest';
|
||||
export function useJob(jobId, props = {}) {
|
||||
return useRequestQuery(
|
||||
['JOB', jobId],
|
||||
{ method: 'get', url: `jobs/${jobId}` },
|
||||
{ method: 'get', url: `organization/build/${jobId}` },
|
||||
{
|
||||
select: (res) => res.data.job,
|
||||
select: (res) => transformToCamelCase(res.data),
|
||||
defaultData: {},
|
||||
...props,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user