Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 0 additions & 69 deletions apps/sim/app/api/workflows/public/[id]/route.ts

This file was deleted.

4 changes: 2 additions & 2 deletions apps/sim/app/api/workspaces/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export async function DELETE(
logger.info(`Deleted templates for workflows in workspace ${workspaceId}`)
} else {
// Set workflowId to null for templates to create "orphaned" templates
// This allows templates to remain in marketplace but without source workflows
// This allows templates to remain without source workflows
await tx
.update(templates)
.set({ workflowId: null })
Expand All @@ -260,7 +260,7 @@ export async function DELETE(
// Delete all workflows in the workspace - database cascade will handle all workflow-related data
// The database cascade will handle deleting related workflow_blocks, workflow_edges, workflow_subflows,
// workflow_logs, workflow_execution_snapshots, workflow_execution_logs, workflow_execution_trace_spans,
// workflow_schedule, webhook, marketplace, chat, and memory records
// workflow_schedule, webhook, chat, and memory records
await tx.delete(workflow).where(eq(workflow.workspaceId, workspaceId))

// Clear workspace ID from knowledge bases instead of deleting them
Expand Down
1 change: 0 additions & 1 deletion apps/sim/stores/workflows/registry/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ export const useWorkflowRegistry = create<WorkflowRegistry>()(
color: getNextWorkflowColor(),
workspaceId, // Include the workspaceId in the new workflow
folderId: sourceWorkflow.folderId, // Include the folderId from source workflow
// Do not copy marketplace data
}

// Get the current workflow state to copy from
Expand Down
1 change: 1 addition & 0 deletions packages/db/migrations/0122_pale_absorbing_man.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE "marketplace" CASCADE;
Loading