Skip to content

Commit

Permalink
Typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekhyt committed Jan 29, 2020
1 parent 9f73cb7 commit 6b6f848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ const { Saga } = require('ddd-js')
class RentCar extends Saga {
setup () {
this.registerCommand('rentCar', async command => {
// initialize anew Saga run
// prepare a new Saga run and get an identifier for it
const id = this.provision()

this.addTask(id, { ...command, name: 'reserveCar', time: new Date().toJSON() }, 'Car', () => {
return { ...command, name: 'freeCar', time: new Date().toJSON() }
})

this.addTask(id, { ...comand, name: 'debitAmount', time: new Date().toJSON() }, 'Payment', () => {
this.addTask(id, { ...command, name: 'debitAmount', time: new Date().toJSON() }, 'Payment', () => {
return { ...command, name: 'payAmount', time: new Date().toJSON() }
})

Expand Down

0 comments on commit 6b6f848

Please sign in to comment.