diff --git a/lib/tasks/backfill_in_person_pending_at.rake b/lib/tasks/backfill_in_person_pending_at.rake index 6803bcb27a7..bbc1a1a181c 100644 --- a/lib/tasks/backfill_in_person_pending_at.rake +++ b/lib/tasks/backfill_in_person_pending_at.rake @@ -21,7 +21,7 @@ namespace :profiles do ) profiles.each do |profile| - timestamp = profile.in_person_enrollment.updated_at + timestamp = profile.updated_at || profile.created_at warn "#{profile.id},#{profile.deactivation_reason},#{timestamp}" if update_profiles