is their any other way to convert in promise ?
var Promise = require("bluebird");
let findOneOrCreate = require('mongoose-find-one-or-create');
findOneOrCreate = Promise.promisify(findOneOrCreate); // not converted to promise
it gives an error: -
Cannot read property 'then' of undefined
via hardy
No comments:
Post a Comment