Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
Fix path to templates map in config
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Oct 28, 2021
1 parent 1e5cb44 commit 28f1d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const sendGridClient = require('@sendgrid/client');
* @returns {string}
*/
function getTemplateId(event, integration) {
const templateId = integration.config.sendgrid.templates[data.event] || '';
const templateId = integration.config.templates[data.event] || '';
if (!templateId) {
throw new Error(`Template ID is not available for event: ${data.event}`);
}
Expand Down

0 comments on commit 28f1d7a

Please sign in to comment.