linvodb3 icon indicating copy to clipboard operation
linvodb3 copied to clipboard

Does updateAsync possible with bluebird?

Open serzhiio opened this issue 6 years ago • 1 comments

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?

serzhiio avatar Sep 17 '18 22:09 serzhiio

@serzhiio well, you can write code like :

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

poria-cat avatar Sep 27 '18 08:09 poria-cat