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 }