Last active
June 4, 2018 01:55
-
-
Save sonjisov/b1504f7b496b63797c8ee5b45b5e1d94 to your computer and use it in GitHub Desktop.
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
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