Created
November 1, 2015 15:57
-
-
Save zontafil/ad03e4d8544efdbff0df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Promise = require("bluebird"); | |
function promisifyWaterline(action){ | |
return new Promise(function(resolve,reject){ | |
action | |
.then(resolve) | |
.catch(function(err){ | |
throw new Error("lol"); | |
}) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment