Moved event creation to all save events and not only new ones

This commit is contained in:
Aileen Nowak 2023-02-15 13:57:38 +02:00 committed by Aileen Booker
parent b55a95b944
commit d482046a25

View File

@ -38,12 +38,12 @@ module.exports = class InMemoryMilestoneRepository {
} else {
this.#store.push(milestone);
this.#ids[milestone.id.toHexString()] = true;
}
for (const event of milestone.events) {
this.#DomainEvents.dispatch(event);
}
}
}
/**
* @param {'arr'|'members'} type