Fix column name in getRecordedIP API

- Change communicationid to comid (correct column name)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
cproudlock
2025-12-12 08:21:29 -05:00
parent 1e17fd3026
commit c96f1c4c0a

View File

@@ -902,7 +902,7 @@ Sub GetRecordedIP()
cmd.CommandText = "SELECT c.address FROM communications c " & _ cmd.CommandText = "SELECT c.address FROM communications c " & _
"INNER JOIN machines m ON c.machineid = m.machineid " & _ "INNER JOIN machines m ON c.machineid = m.machineid " & _
"WHERE m.hostname = ? AND c.address LIKE '10.134.%' " & _ "WHERE m.hostname = ? AND c.address LIKE '10.134.%' " & _
"ORDER BY c.isprimary DESC, c.communicationid ASC LIMIT 1" "ORDER BY c.isprimary DESC, c.comid ASC LIMIT 1"
cmd.Parameters.Append cmd.CreateParameter("@hostname", 200, 1, 50, hostname) cmd.Parameters.Append cmd.CreateParameter("@hostname", 200, 1, 50, hostname)
Set rs = cmd.Execute() Set rs = cmd.Execute()