From 545277add2799f7291dfa84086f0b2f722d4f7e2 Mon Sep 17 00:00:00 2001 From: Echo Date: Mon, 18 May 2026 01:29:24 +0000 Subject: [PATCH] fix: cast ip_address to inet type in enrollment INSERT query --- crates/pm-core/src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "#, )