Private
Public Access
1
0

fix: cast ip_address to inet type in enrollment INSERT query
Some checks failed
CI Pipeline / Rust Format Check (push) Successful in 4s
CI Pipeline / Clippy Lints (push) Successful in 53s
CI Pipeline / Security Audit (push) Has been cancelled
CI Pipeline / Frontend Lint & Type Check (push) Has been cancelled
CI Pipeline / Build .deb & Release (push) Has been cancelled
CI Pipeline / Rust Unit Tests (push) Has been cancelled

This commit is contained in:
2026-05-18 01:29:24 +00:00
parent 6046dd199c
commit 545277add2

View File

@ -73,7 +73,7 @@ pub async fn create_enrollment_request(
>( >(
r#" r#"
INSERT INTO enrollment_requests (machine_id, fqdn, ip_address, os_details, polling_token) INSERT INTO enrollment_requests (machine_id, fqdn, ip_address, os_details, polling_token)
VALUES ($1, $2, $3, $4, $5) VALUES ($1, $2, $3::inet, $4, $5)
RETURNING id, machine_id, fqdn, ip_address, os_details, polling_token, created_at, expires_at RETURNING id, machine_id, fqdn, ip_address, os_details, polling_token, created_at, expires_at
"#, "#,
) )