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

actually updated all the isSelected to $__isSelected #9886

Merged
merged 2 commits into from
Feb 1, 2021
Merged

Conversation

IslandRhythms
Copy link
Collaborator

sorry again

@@ -9878,4 +9878,61 @@ describe('document', function() {
assert.equal(ss.nested[0].toHexString(), updatedElID);
});
});
it('gh9884', function() {
// mongoose.set('useFindAndModify', false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Get rid of these comments please

};

const Model = db.model('Test', schema);
console.log('Here');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Get rid of the console.log() calls here

console.log('Here');
yield Model.create(newDoc);

console.log('Done', yield Model.findOne(), new Date());
Copy link
Collaborator

Choose a reason for hiding this comment

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

and this one too. Just do const doc = yield Model.findOne(); assert.ok(doc); and that should be enough

Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@vkarpov15 vkarpov15 added this to the 5.11.15 milestone Feb 1, 2021
@vkarpov15 vkarpov15 merged commit 5c7d047 into master Feb 1, 2021
@vkarpov15 vkarpov15 deleted the gh9884 branch February 1, 2021 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants