Skip to content

Instantly share code, notes, and snippets.

@TryingToImprove
Created February 18, 2015 16:30
Show Gist options
  • Save TryingToImprove/787bea73b18969923a51 to your computer and use it in GitHub Desktop.
Save TryingToImprove/787bea73b18969923a51 to your computer and use it in GitHub Desktop.
module.exports = {
fetchContactInformations: function(id) {
// Notify listeners that the authentication is started
ContactInformationServerActions.fetchContactInformationsStarted(id);
// Call the API
ContactInformationService.patient.findAll(id)
.then(cb(ContactInformationServer.fetchContactInformationsSuccess, id),
cb(ContactInformationServer.fetchContactInformationsFailed, id));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment