package com.correx.core.approvals

import com.correx.core.approvals.model.ApprovalState
import com.correx.core.events.types.SessionId
import com.correx.core.sessions.projections.replay.EventReplayer

class DefaultApprovalRepository(
    private val replayer: EventReplayer<ApprovalState>
) {
    fun getApprovalState(sessionId: SessionId): ApprovalState =
        replayer.rebuild(sessionId)
}
