Last active
January 26, 2018 14:49
-
-
Save dimlucas/2d375dee5e5cdd75299389020931c027 to your computer and use it in GitHub Desktop.
This file contains 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 joinEvent(email, password, event) { | |
login(email, password).then(user => { | |
return getUserInfo(user); | |
}).then(userInfo => { | |
return event.join(userInfo.id); | |
}).then((success) => { | |
if (success) { | |
console.log("Joined!"); | |
} | |
else { | |
console.log("Not Joined"); | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment