File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -444,15 +444,15 @@ export default class Order extends Aggregate<Props> {
444444 this .props .payment = payment ;
445445 // Add an event to indicate that the order has been paid.
446446 // Assuming OrderPaidEvent is a class representing
447- // the event of order payment.
447+ // the event of order payment.
448448 this .addEvent (new OrderPaidEventHandler ());
449449 return this ;
450450 }
451451
452452 // Static method to create an instance of Order.
453453 // Returns a Result, which can be Ok (success) or Fail (failure).
454454 // The value of the Result is an instance of Order,
455- // if creation is successful.
455+ // if creation is successful.
456456 public static create(props : Props ): Result <Order > {
457457 return Ok (new Order (props ));
458458 }
@@ -465,7 +465,7 @@ How to use events
465465``` ts
466466
467467order .addEvent (' OTHER_EVENT' , (... args ) => {
468- console .log (args );
468+ console .log (args );
469469});
470470
471471// Or add an EventHandler instance
You can’t perform that action at this time.
0 commit comments