diff --git a/ghost/milestones/lib/InMemoryMilestoneRepository.js b/ghost/milestones/lib/InMemoryMilestoneRepository.js index 4cd2309e98..2c15ff7b48 100644 --- a/ghost/milestones/lib/InMemoryMilestoneRepository.js +++ b/ghost/milestones/lib/InMemoryMilestoneRepository.js @@ -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); } }