Skip to content

Commit

Permalink
fix(inventory): change quantityOnStock and restockableInDays to not g…
Browse files Browse the repository at this point in the history
…enerate a data value that could be the same
  • Loading branch information
Sarah4VT committed Dec 12, 2023
1 parent 32a7962 commit 3398756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/inventory-entry/src/inventory-entry-draft/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const generator = Generator<TInventoryEntryDraft>({
fields: {
key: fake((f) => f.lorem.slug(2)),
sku: fake((f) => f.lorem.words()),
quantityOnStock: fake((f) => f.number.int({ min: 10, max: 30 })),
restockableInDays: fake((f) => f.number.int({ min: 1, max: 20 })),
quantityOnStock: fake((f) => f.number.int({ min: 11, max: 30 })),
restockableInDays: fake((f) => f.number.int({ min: 1, max: 10 })),
expectedDelivery: fake(getFutureDate),
supplyChannel: fake(() => Reference.random().typeId('channel')),
custom: null,
Expand Down

0 comments on commit 3398756

Please sign in to comment.