X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fmailshears%2Fplugins%2Fagendav.rb;h=9746f1ce91e7db76cec65dbe46c79e1fdbd69d2e;hb=150ee5398c17acca8ef03b3cc48b3aa7bc1b0035;hp=6ea60a209d65e8f19aa4dfbdd7b15853e2b54289;hpb=df840dca0bcbbb7c2c814f56f72d4785665e6191;p=mailshears.git diff --git a/lib/mailshears/plugins/agendav.rb b/lib/mailshears/plugins/agendav.rb index 6ea60a2..9746f1c 100644 --- a/lib/mailshears/plugins/agendav.rb +++ b/lib/mailshears/plugins/agendav.rb @@ -22,7 +22,7 @@ class AgendavDb end def describe_account(account) - if user_exists(account) + if self.user_exists(account) return "Username: #{account}" else return 'User not found' @@ -37,8 +37,8 @@ class AgendavDb # Delete the given username and any records in other tables # belonging to it. - sql_queries = ['DELETE FROM prefs WHERE username = $1::int;'] - sql_queries << 'DELETE FROM shared WHERE user_from = $1::int;' + sql_queries = ['DELETE FROM prefs WHERE username = $1;'] + sql_queries << 'DELETE FROM shared WHERE user_from = $1;' begin connection = PGconn.connect(@db_host,