Skip to content
This repository has been archived by the owner on Aug 8, 2022. It is now read-only.

Code improvements #16

Open
fayaz07 opened this issue Aug 19, 2020 · 0 comments
Open

Code improvements #16

fayaz07 opened this issue Aug 19, 2020 · 0 comments
Assignees
Labels
hacktoberfest Contributions for hacktoberfest

Comments

@fayaz07
Copy link
Member

fayaz07 commented Aug 19, 2020

  1. verifyAccByToken: api/v1/controllers/auth.js
 const authUser = await Auth.findOne({ _id: verified._userId });
 authUser.emailVerified = true;
 ...

2.deleteAccount: api/v1/controllers/auth.js
can remove this line

const authUser = await getAuthUser(req.tokenData.email);
@fayaz07 fayaz07 self-assigned this Aug 19, 2020
@fayaz07 fayaz07 added the hacktoberfest Contributions for hacktoberfest label Sep 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
hacktoberfest Contributions for hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant