Created
May 15, 2017 15:12
-
-
Save arqex/ccc2cbc7498226afd2e5f76366c7628e to your computer and use it in GitHub Desktop.
Update user reactions 2
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
freezer.on('user:update', update => { | |
var me1 = freezer.get().me; | |
var me2 = me.set({name: update.name}); | |
if( update.hobbies ){ | |
me2.set({hobbies: update.hobbies}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment