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:
2
api.asp
2
api.asp
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user