From 6b6f848d291b32708944d9141d4976583c822638 Mon Sep 17 00:00:00 2001 From: Timo Ebel Date: Wed, 29 Jan 2020 18:39:52 +0100 Subject: [PATCH] Typo. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 121bdec..130789a 100644 --- a/README.md +++ b/README.md @@ -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() } })