|
|
@@ -56,9 +56,9 @@ export class InstallerService {
|
|
|
},
|
|
|
fetchInstallation: async(installQuery: InstallationQuery<boolean>) => {
|
|
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
|
- const id = installQuery.enterpriseId || installQuery.teamId!;
|
|
|
-
|
|
|
- const installation = await repository.findByTeamIdOrEnterpriseId(id);
|
|
|
+ const id = installQuery.enterpriseId || installQuery.teamId;
|
|
|
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
|
+ const installation = await repository.findByTeamIdOrEnterpriseId(id!);
|
|
|
|
|
|
if (installation == null) {
|
|
|
throw new Error('Failed fetching installation');
|