andela/codepirates-ah-backend

View on GitHub
src/helpers/verification-email.js

Summary

Maintainability
A
1 hr
Test Coverage

Function sendEmail has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const sendEmail = (email, username, url) => {
  sgMail.setApiKey(process.env.SendGridApiKey);

  const msg = {
    to: `${email}`,
Severity: Minor
Found in src/helpers/verification-email.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status