fix tsc errors

Signed-off-by: Andrew Ochsner <andrew.ochsner@cognizant.com>
This commit is contained in:
Andrew Ochsner
2023-05-22 16:53:00 -05:00
parent 25c44edf3c
commit 3641353752
6 changed files with 12 additions and 6 deletions
@@ -174,8 +174,10 @@ class GithubAppManager {
const allInstallations = await this.getInstallations();
const installation = allInstallations.find(
inst =>
inst.account?.login?.toLocaleLowerCase('en-US') ===
owner.toLocaleLowerCase('en-US'),
inst.account &&
'login' in inst.account &&
inst.account.login?.toLocaleLowerCase('en-US') ===
owner.toLocaleLowerCase('en-US'),
);
if (installation) {
return {