plugins/mod_storage_sql.lua
changeset 8297 90576b60f2d0
parent 8149 5c91fb62338e
parent 8296 34814a908557
child 8398 fbb9a1c2120e
--- a/plugins/mod_storage_sql.lua	Wed Oct 04 12:10:55 2017 +0200
+++ b/plugins/mod_storage_sql.lua	Thu Oct 05 18:06:04 2017 +0200
@@ -415,8 +415,8 @@
 
 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);
+		engine:delete("DELETE FROM \"prosodyarchive\" WHERE \"host\"=? AND \"user\"=?", host, username);
 	end);
 end