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

monk.findOneAndUpdate never resolves #342

Closed
lopugit opened this issue Jul 17, 2021 · 1 comment
Closed

monk.findOneAndUpdate never resolves #342

lopugit opened this issue Jul 17, 2021 · 1 comment

Comments

@lopugit
Copy link

lopugit commented Jul 17, 2021

I'm just trying to do a pretty simple findOneAndUpdate

  model = monk.get('model')
  model.findOneAndUpdate({ title: 'hey' }, { $set: { title: 'woo' } }).then(i => console.log(i)).catch(e => console.error(e))

basically the findOneAndUpdate never resolves into the .then or even the .catch, it literally just, I don't even know, runs forever or something?

Node V14.15.4
"mongodb": "3.5.7",
"monk": "7.1.0",

@lopugit
Copy link
Author

lopugit commented Jul 17, 2021

Upgrading from 7.1.0 to 7.3.4 fixed the problem?

@lopugit lopugit closed this as completed Jul 17, 2021
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

No branches or pull requests

1 participant