LP#1643709 purge users on merge instead of flag deleted
[working/Evergreen.git] / Open-ILS / src / sql / Pg / 999.functions.global.sql
index 68e4748..661ba4f 100644 (file)
@@ -393,7 +393,7 @@ BEGIN
     ) WHERE id = dest_usr;
 
     -- Finally, delete the source user
-    DELETE FROM actor.usr WHERE id = src_usr;
+    PERFORM actor.usr_delete(src_usr,dest_usr);
 
 END;
 $$ LANGUAGE plpgsql;