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

Function toAdminOrganization

apps/sim/app/api/v1/admin/types.ts:463–475  ·  view source on GitHub ↗
(dbOrg: AdminOrganizationSource)

Source from the content-addressed store, hash-verified

461>
462
463export function toAdminOrganization(dbOrg: AdminOrganizationSource): AdminOrganization {
464 return {
465 id: dbOrg.id,
466 name: dbOrg.name,
467 slug: dbOrg.slug,
468 logo: dbOrg.logo,
469 orgUsageLimit: dbOrg.orgUsageLimit,
470 storageUsedBytes: dbOrg.storageUsedBytes,
471 departedMemberUsage: dbOrg.departedMemberUsage,
472 createdAt: dbOrg.createdAt.toISOString(),
473 updatedAt: dbOrg.updatedAt.toISOString(),
474 }
475}
476
477// =============================================================================
478// Subscription Types

Callers 2

route.tsFile · 0.90
route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected