mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-09 07:12:39 +02:00
fix import json
This commit is contained in:
parent
aeecbd1433
commit
beee4306ac
1 changed files with 2 additions and 6 deletions
|
|
@ -126,13 +126,9 @@ export async function createProjectFromWorkflowJson(formData: FormData): Promise
|
||||||
const name = formData.get('name') as string | null;
|
const name = formData.get('name') as string | null;
|
||||||
|
|
||||||
const workflowJson = formData.get('workflowJson') as string;
|
const workflowJson = formData.get('workflowJson') as string;
|
||||||
const { agents, prompts, tools, pipelines, startAgent } = Workflow.parse(JSON.parse(workflowJson));
|
const workflow = Workflow.parse(JSON.parse(workflowJson));
|
||||||
const response = await createBaseProject(name || 'Imported project', user, {
|
const response = await createBaseProject(name || 'Imported project', user, {
|
||||||
agents,
|
...workflow,
|
||||||
prompts,
|
|
||||||
tools,
|
|
||||||
pipelines,
|
|
||||||
startAgent,
|
|
||||||
lastUpdatedAt: (new Date()).toISOString(),
|
lastUpdatedAt: (new Date()).toISOString(),
|
||||||
});
|
});
|
||||||
if ('billingError' in response) {
|
if ('billingError' in response) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue