Skip to content

Instantly share code, notes, and snippets.

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