From 7a336367e95a1c0b0a8e5c796a8ff3a53cc809ea Mon Sep 17 00:00:00 2001 From: jester Date: Sat, 20 Dec 2025 18:07:30 +0000 Subject: [PATCH] Fix: Change DB field 'ports' to 'allocatedPorts' to match schema Prisma schema defines the field as 'allocatedPorts' (Json type), but code was using 'ports'. This caused DB save failures during provisioning. --- src/api/provisionAgent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/provisionAgent.js b/src/api/provisionAgent.js index 14e79f7..9c5fc2d 100644 --- a/src/api/provisionAgent.js +++ b/src/api/provisionAgent.js @@ -384,7 +384,7 @@ export async function provisionAgentInstance(body = {}) { ctype, hostname, ip: ctIp, - ports: allocatedPorts, + allocatedPorts: allocatedPorts, // ← FIXED: Was 'ports', now matches schema payload, agentState: "running", agentLastSeen: new Date(),