Moved event creation to all save events and not only new ones
This commit is contained in:
parent
b55a95b944
commit
d482046a25
@ -38,10 +38,10 @@ 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);
|
||||
}
|
||||
for (const event of milestone.events) {
|
||||
this.#DomainEvents.dispatch(event);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user