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): Normalize discount code before querying DB #2224

Merged
merged 9 commits into from
Sep 16, 2022

Conversation

olivermrbl
Copy link
Contributor

What
Normalize discount code before querying DB

Fixes CORE-567

@olivermrbl olivermrbl requested a review from a team as a code owner September 16, 2022 06:56
@changeset-bot
Copy link

changeset-bot bot commented Sep 16, 2022

🦋 Changeset detected

Latest commit: e9d1fcc

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

This PR includes changesets to release 1 package
Name Type
@medusajs/medusa Patch

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

Copy link
Collaborator

@srindom srindom left a comment

Choose a reason for hiding this comment

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

LGTM!

@olivermrbl olivermrbl force-pushed the fix/normalized-discount-code branch from ad7eaa9 to 66cc5c5 Compare September 16, 2022 07:40
@srindom
Copy link
Collaborator

srindom commented Sep 16, 2022

Looks like one of the integration tests has a discount with lowercase code which cannot be found now with this change.

@kodiakhq kodiakhq bot merged commit 3f73170 into develop Sep 16, 2022
@kodiakhq kodiakhq bot deleted the fix/normalized-discount-code branch September 16, 2022 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants