Fix lining issue

This commit is contained in:
ivanThePleasant 2022-10-26 15:13:40 +03:00
parent 5cf5b23c66
commit efb4125181

View File

@ -9,7 +9,7 @@ async function digestMessage(message) {
return bufferToHex(hashBuffer);
}
const hashAdminUserEmail = async (payload) => {
export default async function hashAdminUserEmail(payload) {
try {
return await digestMessage(payload.email);
} catch (error) {
@ -18,6 +18,4 @@ const hashAdminUserEmail = async (payload) => {
return hash.sha256().update(payload.email).digest('hex');
}
};
module.exports = hashAdminUserEmail;
}