Skip to main content

lift_asked_at

Function lift_asked_at 

Source
pub(crate) fn lift_asked_at(
    state: &AppState,
    by: &str,
    asked_ms: i64,
) -> Result<(), String>
Expand description

Lift the switch for a request made at asked_ms, if the pause it was made about is still the one on: a pause turned on after the request is a new emergency, and the old approval doesn’t undo it. Err says why nothing was lifted.