Fix in case secret or check period is null

main
Yasen Pramatarov 2025-01-24 16:06:11 +02:00
parent 9a188d0850
commit 21091a2a04
1 changed files with 2 additions and 2 deletions

View File

@ -135,8 +135,8 @@ func getAgents(db *sql.DB) ([]Agent, error) {
sql := `SELECT
ja.id,
ja.url,
ja.secret_key,
ja.check_period,
COALESCE(ja.secret_key, '') AS secret_key,
COALESCE(ja.check_period, 0) AS check_period,
jat.endpoint
FROM
jilo_agents ja