(name: string)
| 696 | return { |
| 697 | // Organizations |
| 698 | createOrganization(name: string): Organization { |
| 699 | const org: Organization = { |
| 700 | id: `org_${generateId()}`, |
| 701 | name, |
| 702 | createdAt: new Date().toISOString(), |
| 703 | }; |
| 704 | |
| 705 | tenantStmts.insertOrg.run({ |
| 706 | id: org.id, |
| 707 | name: org.name, |
| 708 | createdAt: org.createdAt, |
| 709 | }); |
| 710 | |
| 711 | return org; |
| 712 | }, |
| 713 | |
| 714 | getOrganization(id: string): Organization | undefined { |
| 715 | const row = tenantStmts.getOrg.get(id) as Record<string, unknown> | undefined; |
nothing calls this directly
no test coverage detected
searching dependent graphs…