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

Solves: there is only one entity updating for each type if one of required attribute is empty #4

Merged
merged 1 commit into from
May 1, 2023

Conversation

uro
Copy link
Collaborator

@uro uro commented Apr 30, 2023

Suppose we use official Medusa fixtures or do not use one of the unique attributes at all. In that case, the sync mechanism will override the previous entity with an empty attribute thinking it's the same.

Unfortunately, the empty attributes shouldn't be counted as unique, we should skip the comparison in such case.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Message that will be displayed on users' first pull request

@SGFGOV SGFGOV merged commit c6dcc79 into SGFGOV:master May 1, 2023
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.

2 participants