Skip to content

Commit

Permalink
fix(discount code): change maxApplications and maxApplicationsPerCust…
Browse files Browse the repository at this point in the history
…omer to not generate a data value that could be the same
  • Loading branch information
Sarah4VT committed Dec 12, 2023
1 parent 3398756 commit ed0f3be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/discount-code/src/discount-code-draft/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const generator = Generator<TDiscountCodeDraft>({
cartDiscounts: [],
cartPredicate: '1=1',
isActive: fake((f) => f.datatype.boolean()),
maxApplications: fake((f) => f.number.int({ min: 1, max: 30 })),
maxApplicationsPerCustomer: fake((f) => f.number.int({ min: 1, max: 30 })),
maxApplications: fake((f) => f.number.int({ min: 11, max: 30 })),
maxApplicationsPerCustomer: fake((f) => f.number.int({ min: 1, max: 10 })),
groups: [],
validFrom: fake(getValidFrom),
validUntil: fake(getValidUntil),
Expand Down

0 comments on commit ed0f3be

Please sign in to comment.