fix(medusa): product variant metadata (#98)
fix(medusa-plugin-sendgrid): generic email support
This commit is contained in:
1 parent
e24d180ea3
commit
520115a2ce
5 files changed
+51
-42
No files matched your search
@@ -82,14 +82,9 @@ class SendGridService extends BaseService {
|
||||
* @param {Object} data - data to send in mail (match with template)
|
||||
* @returns {Promise} result of the send operation
|
||||
*/
|
||||
async sendEmail(templateId, from, to, data) {
|
||||
async sendEmail(options) {
|
||||
try {
|
||||
return SendGrid.send({
|
||||
to,
|
||||
from,
|
||||
template_id: templateId,
|
||||
dynamic_template_data: data,
|
||||
})
|
||||
return SendGrid.send(options)
|
||||
} catch (error) {
|
||||
throw error
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user