Skip to content

Commit

Permalink
You will be verified Now
Browse files Browse the repository at this point in the history
  • Loading branch information
sivm99 committed Oct 9, 2024
1 parent f875ea7 commit 3624880
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Controller/Mail/dstController.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,15 @@ export const createDestination = asyncErrorHandler(async (req, res, next) => {
}

const { created, modified, verified } = response.data.result;
const isVerified = verified ? true : false;
const newDestination = await Destination.create({
destination,
username,
domain,
destinationId: response.data.result.id,
created,
modified,
verified,
verified:isVerified,
});

const updatedUserQuery = await addDestination(req.user.id, {
Expand Down

0 comments on commit 3624880

Please sign in to comment.