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

Does updateAsync possible with bluebird? #103

Open
serzhiio opened this issue Sep 17, 2018 · 1 comment
Open

Does updateAsync possible with bluebird? #103

serzhiio opened this issue Sep 17, 2018 · 1 comment

Comments

@serzhiio
Copy link

hi gyus faced with problem...
Bluebird does perfectly all with find and exec!
But i cant recieve Promise from update and insert, is it possible?

@poria-cat
Copy link

@serzhiio well, you can write code like :

const insert = bluebird.promisify(Model.insert, {context: Model})
insert({xx:xxx}).then(...).catch(...)

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

2 participants