-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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: duplicatePromotion endpoint issue #6806
Conversation
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are using many insertedCount in other places, this issue could relate to mongodb upgrade so I think I will work on it.
@vannguyenn @vanpho93 What was the outcome of this? If we think we have uncovered another issue can we create a ticket to track the work? I think Chloe's fix is still legit for this particular problem? |
@zenweasel the issue fixed here, just wait to merge to trunk |
@vanpho93 Providing backwards compatibility is good, but shouldn't any new code use the updated API i.e. use insertedId? |
Yes, you're right, I think this PR is good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix @vannguyenn
fix: duplicatePromotion endpoint issue
insertedId
instead ofinsertedCount
for success checkinsertOne
doesn't include theinsertedCount
property