diff options
Diffstat (limited to 'pages/api/verify.js')
-rw-r--r-- | pages/api/verify.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pages/api/verify.js b/pages/api/verify.js index bdad434..89bd4cd 100644 --- a/pages/api/verify.js +++ b/pages/api/verify.js @@ -2,7 +2,7 @@ import dbConnect from 'configs/dbConnect' import sendMail from 'configs/sendMail' import User from 'models/User' import withSession from 'hocs/withSession' -import {subject, text, html} from 'helpers/email' +import { subject, text, html } from 'helpers/email' export default withSession(async (req, res) => { await dbConnect() @@ -10,7 +10,7 @@ export default withSession(async (req, res) => { switch (req.method) { case 'GET': try { - const {email, language: l} = req.session.get('user') + const { email, language: l } = req.session.get('user') if (!email) { throw new Error('Something went wrong') } const key = await User.getVerificationKey(email) @@ -41,4 +41,3 @@ export default withSession(async (req, res) => { break } }) - |