Compare commits

..

1 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
e4344d31d9 feat: add userData to static:user.delete 2021-09-29 09:39:35 -04:00

View File

@@ -105,7 +105,7 @@ module.exports = function (User) {
throw new Error('[[error:no-user]]');
}
await plugins.hooks.fire('static:user.delete', { uid: uid });
await plugins.hooks.fire('static:user.delete', { uid: uid, userData: userData });
await deleteVotes(uid);
await deleteChats(uid);
await User.auth.revokeAllSessions(uid);