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

Don't add prefix for root category 1 #142

Merged
merged 6 commits into from Jan 23, 2024
Merged

Conversation

ah-net
Copy link
Collaborator

@ah-net ah-net commented Jan 18, 2024

When using the suggestions api. And stay in category is enabled. You can get an error on the homepage because the root category is send wrong to tweakwise. All categories have prefixes with the store id. But the root category doesn't have an prefix because it's the default category in TW. It just has an id of 1 in tweakwise.

This pull requests changes the category filter to 1 instead of 100011. This prevents an 500 error on the TW side.

@ah-net ah-net merged commit 764141d into master Jan 23, 2024
3 checks passed
@ah-net ah-net deleted the bugfix-root-category-filter branch January 23, 2024 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant