From 7b2bdb2c653ba197f0097ab4127e3f05dfaeeb78 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Mon, 9 Dec 2024 16:28:38 +0700 Subject: [PATCH] UBERF-8848: Fix github account link (#7391) Signed-off-by: Andrey Sobolev --- services/github/pod-github/src/worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/github/pod-github/src/worker.ts b/services/github/pod-github/src/worker.ts index 7f9db1d38b..3f36636908 100644 --- a/services/github/pod-github/src/worker.ts +++ b/services/github/pod-github/src/worker.ts @@ -416,7 +416,7 @@ export class GithubWorker implements IntegrationManager { private async findPerson (userInfo: UserInfo, userName: string): Promise> { let person: Ref | undefined // try to find by account. - if (userInfo.email != null) { + if (userInfo.email != null && userInfo.email.trim().length > 0) { const personAccount = await this.liveQuery.findOne(contact.class.PersonAccount, { email: userInfo.email }) person = personAccount?.person }