Skip to main content

backdate

Function backdate 

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

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

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