From 5dcdfde22813291c305220bbd3b122e3be664ed0 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 5 Oct 2017 17:22:42 +0200 Subject: mod_storage_sql: Remove return values from purge method --- plugins/mod_storage_sql.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index d4a5f871..edbfd5e4 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -415,8 +415,7 @@ end function driver:purge(username) return engine:transaction(function() - local stmt,err = engine:delete("DELETE FROM \"prosody\" WHERE \"host\"=? AND \"user\"=?", host, username); - return true, err; + engine:delete("DELETE FROM \"prosody\" WHERE \"host\"=? AND \"user\"=?", host, username); end); end -- cgit v1.2.3 From 621ee7226fc62b872cb6b74797b97ee509d620c8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 5 Oct 2017 17:44:47 +0200 Subject: mod_storage_sql: Also clear the prosodyarchive table when an user is deleted (fixes #1009) --- plugins/mod_storage_sql.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index edbfd5e4..c729c66a 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -416,6 +416,7 @@ end function driver:purge(username) return engine:transaction(function() engine:delete("DELETE FROM \"prosody\" WHERE \"host\"=? AND \"user\"=?", host, username); + engine:delete("DELETE FROM \"prosodyarchive\" WHERE \"host\"=? AND \"user\"=?", host, username); end); end -- cgit v1.2.3