Skip to content

Commit e3f1907

Browse files
committed
fix(templates): include name/workflowId/status/tags in DELETE projection
1 parent 11c038f commit e3f1907

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

apps/sim/app/api/templates/[id]/route.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,13 @@ export const DELETE = withRouteHandler(
312312
}
313313

314314
const existing = await db
315-
.select({ creatorId: templates.creatorId })
315+
.select({
316+
name: templates.name,
317+
workflowId: templates.workflowId,
318+
creatorId: templates.creatorId,
319+
status: templates.status,
320+
tags: templates.tags,
321+
})
316322
.from(templates)
317323
.where(eq(templates.id, id))
318324
.limit(1)

0 commit comments

Comments
 (0)