diff options
author | 2021-09-06 23:13:22 +0200 | |
---|---|---|
committer | 2021-09-06 23:13:22 +0200 | |
commit | 569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a (patch) | |
tree | 8d1cb94a56d60b9d726222277b7516fc59895613 /pages/api/verify.js | |
parent | 275bd1d0a9aea90696c145cf992d522a0d6b0aa8 (diff) | |
download | my_apps-569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a.tar.gz my_apps-569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a.tar.bz2 my_apps-569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a.zip |
added stadard linter
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 } }) - |