summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-29 20:32:04 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-29 20:32:04 +0200
commit0226eba60ac14809f357240636a6a7151ef1ab1d (patch)
treef92558d3c971e641bcfc8cb51dff426e7b2e51f6
parent25d0530e860e2103fd28f556ac728c4f72fcd45a (diff)
maintenance: Also delete pending_passwords entries
-rw-r--r--lib/Travelynx/Command/maintenance.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Travelynx/Command/maintenance.pm b/lib/Travelynx/Command/maintenance.pm
index b3702b4..45969b3 100644
--- a/lib/Travelynx/Command/maintenance.pm
+++ b/lib/Travelynx/Command/maintenance.pm
@@ -88,7 +88,9 @@ sub run {
my $stats_res = $db->delete( 'journey_stats', { user_id => $uid } );
my $journeys_res = $db->delete( 'journeys', { user_id => $uid } );
my $transit_res = $db->delete( 'in_transit', { user_id => $uid } );
- my $user_res = $db->delete( 'users', { id => $uid } );
+ my $password_res
+ = $db->delete( 'pending_passwords', { user_id => $uid } );
+ my $user_res = $db->delete( 'users', { id => $uid } );
printf( " %d tokens, %d monthly stats, %d journeys\n",
$tokens_res->rows, $stats_res->rows, $journeys_res->rows );