MCPcopy Index your code
hub / github.com/simstudioai/sim / toAdminWorkflow

Function toAdminWorkflow

apps/sim/app/api/v1/admin/types.ts:215–229  ·  view source on GitHub ↗
(dbWorkflow: AdminWorkflowSource)

Source from the content-addressed store, hash-verified

213>
214
215export function toAdminWorkflow(dbWorkflow: AdminWorkflowSource): AdminWorkflow {
216 return {
217 id: dbWorkflow.id,
218 name: dbWorkflow.name,
219 description: dbWorkflow.description,
220 workspaceId: dbWorkflow.workspaceId,
221 folderId: dbWorkflow.folderId,
222 isDeployed: dbWorkflow.isDeployed,
223 deployedAt: dbWorkflow.deployedAt?.toISOString() ?? null,
224 runCount: dbWorkflow.runCount,
225 lastRunAt: dbWorkflow.lastRunAt?.toISOString() ?? null,
226 createdAt: dbWorkflow.createdAt.toISOString(),
227 updatedAt: dbWorkflow.updatedAt.toISOString(),
228 }
229}
230
231// =============================================================================
232// Workflow Variable Types

Callers 1

route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected