sdy

update requestEmailSecret

...@@ -6,7 +6,6 @@ export default { ...@@ -6,7 +6,6 @@ export default {
6 requestEmailSecret: async (_, args) => { 6 requestEmailSecret: async (_, args) => {
7 const { email } = args; 7 const { email } = args;
8 const emailSecret = generateSecret(); 8 const emailSecret = generateSecret();
9 - const encryptSecret = await bcrypt.hash(emailSecret, 10);
10 try { 9 try {
11 await sendEmail(email, emailSecret); 10 await sendEmail(email, emailSecret);
12 await prisma.user.update({ 11 await prisma.user.update({
...@@ -14,7 +13,7 @@ export default { ...@@ -14,7 +13,7 @@ export default {
14 email, 13 email,
15 }, 14 },
16 data: { 15 data: {
17 - emailSecret: encryptSecret, 16 + emailSecret,
18 }, 17 },
19 }); 18 });
20 return true; 19 return true;
......