Skip to content

Commit

Permalink
Fix Internal Server Error when GETting sslkey_expirations endpoint (#…
Browse files Browse the repository at this point in the history
…7294)

* Fix ISE when GETting sslkeys_expirations endpoint

* code review

* removing changelog
  • Loading branch information
srijeet0406 authored Jan 20, 2023
1 parent e594d41 commit 0a30f45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (p *Postgres) GetExpirationInformation(tx *sql.Tx, ctx context.Context, day
fedMap[fedString] = true
}

inactiveQuery := "SELECT xml_id FROM deliveryservice WHERE NOT active"
inactiveQuery := "SELECT xml_id FROM deliveryservice WHERE active = 'INACTIVE' OR active = 'PRIMED'"
iaRows, err := tx.Query(inactiveQuery)
if err != nil {
return []tc.SSLKeyExpirationInformation{}, err
Expand Down

0 comments on commit 0a30f45

Please sign in to comment.