fix(medusa): Normalize discount code before querying DB (#2224)

**What**
Normalize discount code before querying DB

Fixes CORE-567
This commit is contained in:
Oliver Windall Juhl authored and GitHub committed 2022-09-16 12:01:36 +00:00
1 parent f7177c9033
commit 3f73170288
7 files changed
+143 -20

No files matched your search

@@ -2,13 +2,13 @@ import {
AllocationType,
Discount,
DiscountRule,
DiscountRuleType,
DiscountRuleType
} from "@medusajs/medusa"
import faker from "faker"
import { Connection } from "typeorm"
import {
DiscountConditionFactoryData,
simpleDiscountConditionFactory,
simpleDiscountConditionFactory
} from "./simple-discount-condition-factory"
export type DiscountRuleFactoryData = {