mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-08 23:02:41 +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 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, {
|
||||
agents,
|
||||
prompts,
|
||||
tools,
|
||||
pipelines,
|
||||
startAgent,
|
||||
...workflow,
|
||||
lastUpdatedAt: (new Date()).toISOString(),
|
||||
});
|
||||
if ('billingError' in response) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue