| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 298a213 commit 97b0ee5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,11 +76,12 @@ export class Integration extends BaseIntegration<EnterpriseProjectIntegration> { | |||
| 76 | 76 | ||
| 77 | 77 | protected async validatePK(pk: string, appId?: string): Promise<EnterpriseProjectIntegration> { | |
| 78 | 78 | let key = await this.getPK(pk); | |
| 79 | - if (!key.org) { | ||
| 80 | - throw new FatalException('No Organization attached to key. Please contact support@ionic.io'); | ||
| 81 | - } | ||
| 82 | 79 | ||
| 83 | 80 | if (!key.app || appId) { | |
| 81 | + if (!key.org) { | ||
| 82 | + // temporary error until we make possible to link the key to an app for personal accounts | ||
| 83 | + throw new FatalException('No App attached to key. Please contact support@ionic.io'); | ||
| 84 | + } | ||
| 84 | 85 | if (!appId) { | |
| 85 | 86 | appId = await this.chooseAppToLink(key.org); | |
| 86 | 87 | } | |
@@ -91,7 +92,7 @@ export class Integration extends BaseIntegration<EnterpriseProjectIntegration> { | |||
| 91 | 92 | keyId: key.id, | |
| 92 | 93 | productKey: key.key, | |
| 93 | 94 | appId: key.app.id, | |
| 94 | - orgId: key.org.id, | ||
| 95 | + orgId: key.org ? key.org.id : undefined, | ||
| 95 | 96 | registries: key.registries, | |
| 96 | 97 | }; | |
| 97 | 98 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments