From 93e5a8f341eb0f9548f015b16e486e4076bfeca2 Mon Sep 17 00:00:00 2001 From: Sam Dodrill Date: Wed, 7 Jan 2015 10:36:20 -0800 Subject: [PATCH] app: freeswitch queries extension --- app.moon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.moon b/app.moon index ead4215..569e918 100644 --- a/app.moon +++ b/app.moon @@ -94,7 +94,7 @@ class App extends lapis.Application [freeswitch: "/freeswitch"]: respond_to { POST: => uid = @params["user"] or @params["sip_auth_username"] - @user = Users\find id: uid + @user = Users\find extension: uid if not @user return status: 404, "no such user"