From 0dc7ed4292aaebe642105bc5dc834a6123287db2 Mon Sep 17 00:00:00 2001 From: lulu Date: Fri, 10 May 2024 13:56:22 +0000 Subject: [PATCH] from with name --- README.md | 4 ++-- package.json | 2 +- src/types.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 651ed7a..f79b232 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Still in beta proceed with caution -## 2.0.0 - Contains breaking changes. Please read the documentation carefully +## v2.0.0 - Contains breaking changes. Please read the documentation carefully You can now send emails with other providers and schedule the task to send emails. Remember to run migrations after adding the plugin to the `medusa-config.js` file @@ -139,7 +139,7 @@ I strongly recommend using this plugin in combination with the [Medusa Plugin Se /* enable sendgrid */ sendgridEnabled: boolean /* email from which you will be sending */ - from: string + from: { name?: string; email: string } | string /* template id from sendgrid */ templateId: string /* header line of the email optional */ diff --git a/package.json b/package.json index 3976b6d..6d7642f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "medusa-plugin-abandoned-cart", - "version": "2.0.4", + "version": "2.0.5", "description": "Medusa plugin for abandoned cart tracking and recovery", "author": "Lucjan Grzesik (https://github.com/luluhoc)", "license": "MIT", diff --git a/src/types.ts b/src/types.ts index ad671ec..ba10e21 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,7 +4,7 @@ export interface BasePluginOptions { /* enable sendgrid */ sendgridEnabled: boolean /* email from which you will be sending */ - from: string + from: { name?: string; email: string } | string /* template id from sendgrid */ templateId: string /* header line of the email optional */