Created
May 14, 2017 10:53
-
-
Save arqex/0f6f91217637eb6b90ffc80be1524c9c to your computer and use it in GitHub Desktop.
User reactions
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:create', user => { | |
freezer.get().users.set(user.id, user); | |
}); | |
freezer.on('user:update', (id, update) => { | |
freezer.get().users[id].set(update); | |
}); | |
freezer.on('user:delete', id => { | |
freezer.get().users.remove(id); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment