pub async fn ref_deleted_at( state: AppState, ref_id: Uuid, ) -> Result<Option<DateTime<Utc>>, AppError>
Gets the deleted_at timestamp for a document ref.