Skip to main content

backdate

Function backdate 

Source
pub async fn backdate(
    conn: &mut PgConnection,
    file_upload_id: Uuid,
    age: Duration,
) -> ModelResult<()>
Expand description

Moves a binding’s creation time age into the past, to bring it within a retention window.

Shifts the row rather than the clock because get_reapable compares against Postgres now(), which no Rust-side clock reaches.