Skip to main content

backdate

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

Moves a mail’s sent_at age into the past, for seeding mails sent before today.

Shifts the row rather than the clock because the caps compare against Postgres now().