()
| 22 | }; |
| 23 | |
| 24 | export const getCurrentOrgId = async (): Promise<string> => { |
| 25 | if (currentOrgId) { |
| 26 | return currentOrgId; |
| 27 | } |
| 28 | const currentUser = await API.getAuthenticatedUser(); |
| 29 | currentOrgId = currentUser.organization_ids[0]; |
| 30 | return currentOrgId; |
| 31 | }; |
| 32 | |
| 33 | export const createUser = async (...orgIds: string[]) => { |
| 34 | const name = randomName(); |
no outgoing calls
no test coverage detected