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

FIX: already inserted Links will will throw DuplicateKeyError on insert of wrapping doc #469

Merged
merged 3 commits into from
Jan 5, 2023
Merged

FIX: already inserted Links will will throw DuplicateKeyError on insert of wrapping doc #469

merged 3 commits into from
Jan 5, 2023

Conversation

noaHson86
Copy link
Contributor

@noaHson86 noaHson86 commented Jan 5, 2023

This is a quick fix for DuplicateKeyError on insert. a test is added that will fail,
when you revert the changes in documents.py. Im not sure if i like the amount of calls,
that could be possibly made.
The try/except + replace/insert in save could be possibly replaced with an upsert.

noaHson86 and others added 3 commits January 5, 2023 00:41
@roman-right roman-right merged commit 1bff9db into BeanieODM:main Jan 5, 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