Add is_saved_task parameter (#528)

This commit is contained in:
Salih Altun
2024-06-27 23:38:59 +03:00
committed by GitHub
parent 63adc860ef
commit 393196a13a
2 changed files with 5 additions and 1 deletions

View File

@@ -148,6 +148,7 @@ function createTaskTemplateRequestObject(values: SavedTaskFormValues) {
return {
title: values.title,
description: values.description,
is_saved_task: true,
webhook_callback_url: values.webhookCallbackUrl,
proxy_location: values.proxyLocation,
workflow_definition: {

View File

@@ -20,6 +20,7 @@ function createEmptyTaskTemplate() {
return {
title: "New Template",
description: "",
is_saved_task: true,
webhook_callback_url: null,
proxy_location: "RESIDENTIAL",
workflow_definition: {
@@ -53,7 +54,9 @@ function SavedTasks() {
queryKey: ["workflows"],
queryFn: async () => {
const client = await getClient(credentialGetter);
return client.get("/workflows").then((response) => response.data);
return client
.get("/workflows?only_saved_tasks=true")
.then((response) => response.data);
},
});