Skip to content

Commit

Permalink
BED-4852 CheckError on preload
Browse files Browse the repository at this point in the history
  • Loading branch information
mvlipka committed Oct 24, 2024
1 parent bb06f5a commit d62d6f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/api/src/database/sso_providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (s *BloodhoundDB) DeleteSSOProvider(ctx context.Context, id int) error {
Table(ssoProviderTableName).
Where("id = ?", id).
First(&ssoProvider); result.Error != nil {
return result.Error
return CheckError(result)
}

err := s.AuditableTransaction(ctx, auditEntry, func(tx *gorm.DB) error {
Expand Down

0 comments on commit d62d6f7

Please sign in to comment.