mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-05-22 14:13:02 +02:00
Update Job-Dependency (backend)
This commit is contained in:
parent
e9a2a561cf
commit
dae653c2b4
@ -88,10 +88,10 @@ export const CreateUpdateAllMetadataJob = async (apiUri: string) : Promise<strin
|
|||||||
return await putData(`${apiUri}/v2/Job/UpdateAllMetadataJob`, {}) as Promise<string[]>;
|
return await putData(`${apiUri}/v2/Job/UpdateAllMetadataJob`, {}) as Promise<string[]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const StartJob = async (apiUri: string, jobId: string) : Promise<object | undefined> => {
|
export const StartJob = async (apiUri: string, jobId: string, startDependencies: boolean) : Promise<object | undefined> => {
|
||||||
return await postData(`${apiUri}/v2/Job/${jobId}/Start`, {});
|
return await postData(`${apiUri}/v2/Job/${jobId}/Start`, startDependencies);
|
||||||
}
|
}
|
||||||
|
|
||||||
export const StopJob = async (apiUri: string, jobId: string) : Promise<object | undefined> => {
|
export const StopJob = async (apiUri: string, jobId: string) : Promise<object | undefined> => {
|
||||||
return await postData(`${apiUri}/v2/Job/${jobId}/Stop`, {});
|
return await postData(`${apiUri}/v2/Job/${jobId}/Stop`);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user