Private
Public Access
1
0

scores: allow specifying the monitor by name
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-12-22 08:59:13 -08:00
parent 9280668d28
commit 6553b4711b
3 changed files with 17 additions and 2 deletions

View File

@@ -13,7 +13,11 @@ import (
)
const getMonitorByName = `-- name: GetMonitorByName :one
select id, type, user_id, account_id, name, location, ip, ip_version, tls_name, api_key, status, config, client_version, last_seen, last_submit, created_on from monitors where tls_name = ?
select id, type, user_id, account_id, name, location, ip, ip_version, tls_name, api_key, status, config, client_version, last_seen, last_submit, created_on from monitors
where
tls_name like ?
order by id
limit 1
`
func (q *Queries) GetMonitorByName(ctx context.Context, tlsName sql.NullString) (Monitor, error) {