Skip to content

Instantly share code, notes, and snippets.

@sonjisov
Last active June 4, 2018 01:55
Show Gist options
  • Save sonjisov/b1504f7b496b63797c8ee5b45b5e1d94 to your computer and use it in GitHub Desktop.
Save sonjisov/b1504f7b496b63797c8ee5b45b5e1d94 to your computer and use it in GitHub Desktop.
const R = require('ramda');
// Imaginary repository that has a promisified method called putHello().
const repo = require('./hello-repo');
// Imaginary notification scheduler.
const notificationService = require('./notification-service');
// First, let's write the steps one by one.
module.exports = R.pipeP(
validateInput,
addHelloToRepo,
scheduleNotifications,
createResponse
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment