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

Code improvements #16

Open
Open
@fayaz07

Description

@fayaz07
  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);

Metadata

Metadata

Assignees

Labels

hacktoberfestContributions for hacktoberfest

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions