API/api.medcify.app/node_modules/razorpay/dist/utils/nodeify.js
2022-09-26 11:41:44 +05:30

15 lines
253 B
JavaScript

'use strict';
var nodeify = function nodeify(promise, cb) {
if (!cb) {
return promise;
}
return promise.then(function (response) {
cb(null, response);
}).catch(function (error) {
cb(error, null);
});
};
module.exports = nodeify;