Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: personalization.toJSON is not a function #33

Open
frzkhan opened this issue Mar 3, 2018 · 0 comments
Open

TypeError: personalization.toJSON is not a function #33

frzkhan opened this issue Mar 3, 2018 · 0 comments

Comments

@frzkhan
Copy link

frzkhan commented Mar 3, 2018

Im using the following config to send email verification in loopback, which results in this error
works fine with previous version
Not working on ^2.2.4
Working on ^2.1.3

const options = {
      type: 'email',
      to: 'test@local.email,
      from: 'test@local.email',
      subject: 'subject',
      text: '-',
      html: '-',
      sendGridConfig: {
        personalizations: [{
          to: [{ email: 'test@local.email' }],
          substitutions: {
            '-test-': 'test',
          },
        }],
        templateId: 'sendgridtemplateId'
      }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant