Created
March 5, 2016 03:56
-
-
Save evanlucas/77b3465158b83599f5f2 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
function isAvailable(username, email, isAvailableCallback) { | |
pool.getConnection(function(err, connection, poolCallback) { | |
if (err) { | |
return isAvailableCallback(err) | |
} | |
// you can call both callbacks in here | |
poolCallback() | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment