Skip to main content

emit_consent_changes

Function emit_consent_changes 

Source
pub fn emit_consent_changes(
    ctx: &impl CoreContext,
    events: &impl EventWriter<InternalEvent>,
    db: &impl DbQuery,
    changes: &[ConsentChange],
) -> Result<(), ConnectionError>
Expand description

Report stored consent changes: one event per changed key and entity the app names it by, the legacy stream, and a wake for the outbox when a change is owed. This is the only consent event emitter.