feat(all): add organisation, api updates with organisation check
Now calling run endpoints with GET, POST will check against the API key, whether there is org_id or not, if the operation workflow doesnt match with the user org or user id, will return with workflow not found, run not found
This commit is contained in:
@@ -165,7 +165,13 @@ export function RunWorkflowButton({
|
||||
try {
|
||||
const origin = window.location.origin;
|
||||
await callServerPromise(
|
||||
createRun(origin, workflow_version_id, machine, val, true)
|
||||
createRun({
|
||||
origin,
|
||||
workflow_version_id,
|
||||
machine_id: machine,
|
||||
inputs: val,
|
||||
isManualRun: true,
|
||||
})
|
||||
);
|
||||
// console.log(res.json());
|
||||
setIsLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user