Skip to content

Commit 2e5e96e

Browse files
committed
add author existance check
1 parent 7053b5e commit 2e5e96e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/serverless/integrations/services/integrations/githubIntegrationService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ export class GithubIntegrationService extends IntegrationServiceBase {
12001200

12011201
break
12021202
case GithubPullRequestEvents.REVIEW:
1203-
if (record.author.login && record.submittedAt) {
1203+
if (record?.author?.login && record?.submittedAt) {
12041204
const member = await GithubIntegrationService.parseMember(record.author, context)
12051205
out.push({
12061206
username: member.username[PlatformType.GITHUB].username,

0 commit comments

Comments
 (0)