diff --git a/crates/pm-core/src/db.rs b/crates/pm-core/src/db.rs index e58d5c3..28513ae 100644 --- a/crates/pm-core/src/db.rs +++ b/crates/pm-core/src/db.rs @@ -73,7 +73,7 @@ pub async fn create_enrollment_request( >( r#" 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 "#, )