]> gitweb.michael.orlitzky.com - mailshears.git/commitdiff
Fix table name in DAViCal plugin.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 19 Mar 2013 15:38:28 +0000 (11:38 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 19 Mar 2013 15:38:28 +0000 (11:38 -0400)
lib/mailshears/plugins/davical.rb

index 964bcb07eeb81a3018b5eacc3d680716e53f0e9a..3f4861c3914e44d201442981fa69bb198f3acf9c 100644 (file)
@@ -97,7 +97,7 @@ class DavicalDb
                                   @db_user,
                                   @db_pass)
 
-      sql_query = "SELECT principal_id FROM users WHERE username = $1;"
+      sql_query = "SELECT principal_id FROM usr WHERE username = $1;"
 
       connection.query(sql_query, [account]) do |result|
         if result.num_tuples > 0