Skip to content

Commit

Permalink
one more attempt to fix /ai
Browse files Browse the repository at this point in the history
  • Loading branch information
berekuk committed Dec 5, 2024
1 parent 1f4e5b4 commit c2aa55d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/hub/src/app/ai/api/create/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,9 @@ export async function POST(req: Request) {

const workflow = aiRequestToWorkflow(request);

saveWorkflowToDbOnUpdates(workflow);
await createDbWorkflow(workflow, user);

// this is async but we don't need to wait for it
createDbWorkflow(workflow, user);
saveWorkflowToDbOnUpdates(workflow);

const stream = workflow.runAsStream();

Expand Down

0 comments on commit c2aa55d

Please sign in to comment.