Skip to content

Commit 16bcd96

Browse files
authored
Merge pull request #90 from ConductorOne/BB981
[BB-981] baton-github: ignore 404 error when syncing invitations
2 parents 28bf532 + 3635e64 commit 16bcd96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/connector/invitation.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ func (i *invitationResourceType) List(ctx context.Context, parentID *v2.Resource
6969
PerPage: pt.Size,
7070
})
7171
if err != nil {
72+
if isNotFoundError(resp) {
73+
return nil, "", nil, nil
74+
}
7275
return nil, "", nil, fmt.Errorf("github-connector: ListPendingOrgInvitatioins failed: %w", err)
7376
}
7477

0 commit comments

Comments
 (0)