Function get_age_since_sent

Source
pub fn get_age_since_sent(
    tx: &TransactionRepoModel,
) -> Result<Duration, TransactionError>
Expand description

Gets the age of a transaction since it was sent, falling back to created_at.

If sent_at is present but invalid, this falls back to created_at and emits a warning. Gets the age of a transaction since it was sent.