Skip to content

Instantly share code, notes, and snippets.

@arqex
Created May 15, 2017 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arqex/ccc2cbc7498226afd2e5f76366c7628e to your computer and use it in GitHub Desktop.
Save arqex/ccc2cbc7498226afd2e5f76366c7628e to your computer and use it in GitHub Desktop.
Update user reactions 2
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