Skip to content

Commit

Permalink
Fix Channel data model compat mode presets (#715)
Browse files Browse the repository at this point in the history
* fix(channel): fix compatibility model presets

* chore: add changeset
  • Loading branch information
CarlosCortizasCT authored Nov 19, 2024
1 parent 7082f21 commit ac18883
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/giant-pans-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@commercetools-test-data/channel': patch
---

Fixes the exported presets for the compatibility test data model.
We were exporting the GraphQL ones so it was not possible to generate REST data models out of them.
2 changes: 1 addition & 1 deletion models/channel/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ export const ChannelGraphql = {
* @deprecated Use `ChannelRest` or `ChannelGraphql` exported models instead of `Channel`.
*/
export const random = CompatChannelModelBuilder;
export const presets = modelPresets.graphqlPresets;
export const presets = modelPresets.compatPresets;
4 changes: 4 additions & 0 deletions models/channel/src/presets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ export const graphqlPresets = {
foodStore: foodStore.graphqlPreset,
clothesStore: clothesStore.graphqlPreset,
};
export const compatPresets = {
foodStore: foodStore.compatPreset,
clothesStore: clothesStore.compatPreset,
};

0 comments on commit ac18883

Please sign in to comment.