Created
October 22, 2019 12:08
-
-
Save indatawetrust/f0a9a49efeee6346ca30213982c02161 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
const messages = app.service('/messages'); | |
messages.on('created', (data) => { | |
dispatch(services.messages.onCreated(data)); | |
}) | |
messages.on('updated', (data) => { | |
dispatch(services.messages.onUpdated(data)); | |
}) | |
messages.on('patched', (data) => { | |
dispatch(services.messages.onPatched(data)); | |
}) | |
messages.on('removed', (data) => { | |
dispatch(services.messages.onRemoved(data)); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment