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

Function toAdminWorkspace

apps/sim/app/api/v1/admin/types.ts:141–149  ·  view source on GitHub ↗
(dbWorkspace: DbWorkspace)

Source from the content-addressed store, hash-verified

139}
140
141export function toAdminWorkspace(dbWorkspace: DbWorkspace): AdminWorkspace {
142 return {
143 id: dbWorkspace.id,
144 name: dbWorkspace.name,
145 ownerId: dbWorkspace.ownerId,
146 createdAt: dbWorkspace.createdAt.toISOString(),
147 updatedAt: dbWorkspace.updatedAt.toISOString(),
148 }
149}
150
151// =============================================================================
152// Folder Types

Callers 1

route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected