mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Moved event creation to all save events and not only new ones
This commit is contained in:
parent
b55a95b944
commit
d482046a25
1 changed files with 3 additions and 3 deletions
|
@ -38,12 +38,12 @@ module.exports = class InMemoryMilestoneRepository {
|
||||||
} else {
|
} else {
|
||||||
this.#store.push(milestone);
|
this.#store.push(milestone);
|
||||||
this.#ids[milestone.id.toHexString()] = true;
|
this.#ids[milestone.id.toHexString()] = true;
|
||||||
|
}
|
||||||
|
|
||||||
for (const event of milestone.events) {
|
for (const event of milestone.events) {
|
||||||
this.#DomainEvents.dispatch(event);
|
this.#DomainEvents.dispatch(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {'arr'|'members'} type
|
* @param {'arr'|'members'} type
|
||||||
|
|
Loading…
Add table
Reference in a new issue