package com.correx.core.journal

import com.correx.core.events.types.SessionId
import com.correx.core.journal.model.DecisionJournalState
import com.correx.core.sessions.projections.replay.EventReplayer

class DefaultDecisionJournalRepository(
    private val replayer: EventReplayer<DecisionJournalState>,
) {
    fun getJournal(sessionId: SessionId): DecisionJournalState = replayer.rebuild(sessionId)
}
