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

fix(medusa-plugin-sendgrid): Inject GiftCardService to eliminate undefined error #2941

Merged
merged 6 commits into from Jan 30, 2023

Conversation

RegisHubelia
Copy link
Contributor

This PR fixes an issue where gift card created from the admin portal wouldn't send using sendgrid.

Also - there is no order attached to the gift card when it's created trough the admin portal - so I revoved the return statement if there is no order and adjusted the data sent to the template based on what was there - I updated the documentation to reflect the "display_value".

@RegisHubelia RegisHubelia requested review from a team as code owners January 4, 2023 18:12
@changeset-bot
Copy link

changeset-bot bot commented Jan 4, 2023

🦋 Changeset detected

Latest commit: 7cfff7d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
medusa-plugin-sendgrid Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@RegisHubelia
Copy link
Contributor Author

Can someone look at this PR and let me know if any changes is required?

Thanks

Copy link
Contributor

@olivermrbl olivermrbl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. I've added a couple of todo. Let me know if something is unclear :)

packages/medusa-plugin-sendgrid/src/services/sendgrid.js Outdated Show resolved Hide resolved
packages/medusa-plugin-sendgrid/src/services/sendgrid.js Outdated Show resolved Hide resolved
@olivermrbl olivermrbl changed the title Fix/issue 2938 fix(medusa-plugin-sendgrid): Inject GiftCardService to eliminate undefined error Jan 11, 2023
@olivermrbl
Copy link
Contributor

Also, please add a changeset bumping the Sendgrid plugin with the following message:

fix(medusa-plugin-sendgrid): Inject GiftCardService to eliminate undefined error

Use utility to cover all currency cases.

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
@RegisHubelia
Copy link
Contributor Author

Perfect - will do and send the commit shortly.

@daysgobye
Copy link

Thank you for catching this. Glad someone is working on it cant wait for it to be merged.

@RegisHubelia
Copy link
Contributor Author

Also, please add a changeset bumping the Sendgrid plugin with the following message:

fix(medusa-plugin-sendgrid): Inject GiftCardService to eliminate undefined error

Done

@RegisHubelia
Copy link
Contributor Author

@olivermrbl - Let me know if I need to do anything else?

@olivermrbl
Copy link
Contributor

@RegisHubelia Your branch is out-of-date with the base. Can I get you to update?

@RegisHubelia
Copy link
Contributor Author

@olivermrbl

@RegisHubelia Your branch is out-of-date with the base. Can I get you to update?

Just did!

Copy link
Contributor

@olivermrbl olivermrbl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Will be part of next release :)

@daysgobye
Copy link

what is eta on this being merged?

@olivermrbl
Copy link
Contributor

@RegisHubelia Can I get you to update your branch with latest from develop? Then I'll push to get it merged today :)

@RegisHubelia
Copy link
Contributor Author

@RegisHubelia Can I get you to update your branch with latest from develop? Then I'll push to get it merged today :)

Done!

@olivermrbl olivermrbl merged commit 2551fe0 into medusajs:develop Jan 30, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants