Only use status for certificate selection
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -756,13 +756,18 @@ FROM
|
|||||||
custom_domains
|
custom_domains
|
||||||
WHERE
|
WHERE
|
||||||
%s
|
%s
|
||||||
AND http_challenge_token IS NOT NULL
|
AND ssl_status = ANY(@statuses)
|
||||||
AND ssl_status IN ('PROVISIONING', 'RENEWING')
|
|
||||||
`
|
`
|
||||||
|
|
||||||
q = fmt.Sprintf(q, scope.SQLFragment())
|
q = fmt.Sprintf(q, scope.SQLFragment())
|
||||||
|
|
||||||
args := pgx.NamedArgs{}
|
args := pgx.NamedArgs{
|
||||||
|
"statuses": []CustomDomainSSLStatus{
|
||||||
|
CustomDomainSSLStatusPending,
|
||||||
|
CustomDomainSSLStatusProvisioning,
|
||||||
|
CustomDomainSSLStatusRenewing,
|
||||||
|
},
|
||||||
|
}
|
||||||
maps.Copy(args, scope.SQLArguments())
|
maps.Copy(args, scope.SQLArguments())
|
||||||
|
|
||||||
rows, err := conn.Query(ctx, q, args)
|
rows, err := conn.Query(ctx, q, args)
|
||||||
|
|||||||
Reference in New Issue
Block a user