Skip to content

Commit

Permalink
fix: change state check to be enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
carddev81 committed Nov 1, 2024
1 parent 0d89e6b commit 2efb949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/database/provider_platforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func iterMap[T any](fun func(T) T, arr []T) []T {
func (db *DB) GetAllActiveProviderPlatforms() ([]models.ProviderPlatform, error) {
var platforms []models.ProviderPlatform
if err := db.Model(models.ProviderPlatform{}).Preload("OidcClient").
Find(&platforms, "state = ?", "active").Error; err != nil {
Find(&platforms, "state = ?", "enabled").Error; err != nil {
return nil, newGetRecordsDBError(err, "provider_platforms")
}

Expand Down

0 comments on commit 2efb949

Please sign in to comment.