summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-15 08:41:13 -0400
committerPeter Kozak <spag@golwen.net>2013-03-15 08:41:13 -0400
commit5aa4b1351d34f138365f07995d704ae4a7e46e4a (patch)
tree4dd2d36b64a806c70efdfd3b9b4fa3dd61a99de8
parenta6b3a069c2723e321ebfb79a06026bfe97cec9e6 (diff)
find_by_uuid method fixed
-rw-r--r--misc/freeswitch/scripts/dialplan/hunt_group.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/dialplan/hunt_group.lua b/misc/freeswitch/scripts/dialplan/hunt_group.lua
index bff0a8e..8411fd5 100644
--- a/misc/freeswitch/scripts/dialplan/hunt_group.lua
+++ b/misc/freeswitch/scripts/dialplan/hunt_group.lua
@@ -38,7 +38,7 @@ end
function HuntGroup.find_by_uuid(self, uuid)
- local sql_query = 'SELECT * FROM `hunt_groups` WHERE `id`= "'.. uuid .. '" LIMIT 1';
+ local sql_query = 'SELECT * FROM `hunt_groups` WHERE `uuid`= "'.. uuid .. '" LIMIT 1';
local hunt_group = nil;
self.database:query(sql_query, function(entry)