refactor: add targetUid to email-change event

isekai-main
Barış Soner Uşaklı 1 year ago
parent 55cb1d7868
commit 4e5340d260

@ -204,7 +204,12 @@ UserEmail.confirmByCode = async function (code, sessionId) {
await Promise.all([
UserEmail.confirmByUid(confirmObj.uid),
db.delete(`confirm:${code}`),
events.log({ type: 'email-change', oldEmail, newEmail: confirmObj.email }),
events.log({
type: 'email-change',
oldEmail,
newEmail: confirmObj.email,
targetUid: confirmObj.uid,
}),
]);
};

Loading…
Cancel
Save