mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
18 lines
339 B
TypeScript
18 lines
339 B
TypeScript
// @ts-nocheck
|
|
import { useRequestQuery } from '../useQueryRequest';
|
|
|
|
/**
|
|
* Retrieve the job metadata.
|
|
*/
|
|
export function useJob(jobId, props = {}) {
|
|
return useRequestQuery(
|
|
['JOB', jobId],
|
|
{ method: 'get', url: `jobs/${jobId}` },
|
|
{
|
|
select: (res) => res.data.job,
|
|
defaultData: {},
|
|
...props,
|
|
},
|
|
);
|
|
}
|