Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 68fedba

Browse files
Force user to pass org details when multiple orgs are associated with user
1 parent 6774967 commit 68fedba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/common/es-helper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ async function getOrganizationId (handle) {
278278
])
279279

280280
if (orgIdLookupResults.length > 0) {
281+
throw new Error(`Handle ${handle} is associated with multiple organizations. Cannot select one.`)
282+
} else if (orgIdLookupResults.length === 1) {
281283
return orgIdLookupResults[0].organizationId
282284
}
283285

0 commit comments

Comments
 (0)