Skip to content

Commit d08a359

Browse files
authored
handle deleted integrations gracefully in report generation (#37)
1 parent f7d4e11 commit d08a359

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backend/app/report.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ func (a *App) GenerateAWSCloudTrailReport(ctx context.Context, input GenerateAWS
263263
integration, err := a.store.GetAWSIntegrationById(ctx, input.AWSIntegrationId)
264264
if err != nil {
265265
return nil, fmt.Errorf("failed to get aws integration: %w", err)
266+
} else if integration == nil {
267+
return nil, nil
266268
}
267269

268270
output, err := a.sts.AssumeRole(ctx, &sts.AssumeRoleInput{

0 commit comments

Comments
 (0)