summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-02-18 17:21:49 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-02-18 17:21:49 +0100
commit01053f9d416ab9816759824dc635c8dcb77293b3 (patch)
treefc99450c96b4b601fd263d3d7d2f7dfe6e5e9bbf /lib/Travelynx/Command
parent582bfbe661d25ec721a35c795cdd7f5e3f340b04 (diff)
maintenance: Log deletion notification to stdout
Diffstat (limited to 'lib/Travelynx/Command')
-rw-r--r--lib/Travelynx/Command/maintenance.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Travelynx/Command/maintenance.pm b/lib/Travelynx/Command/maintenance.pm
index 58189ff..35264e4 100644
--- a/lib/Travelynx/Command/maintenance.pm
+++ b/lib/Travelynx/Command/maintenance.pm
@@ -14,10 +14,10 @@ has usage => sub { shift->extract_usage };
sub run {
my ( $self, $filename ) = @_;
- my $now = DateTime->now( time_zone => 'Europe/Berlin' );
- my $verification_deadline = $now->clone->subtract( hours => 48 );
- my $deletion_deadline = $now->clone->subtract( hours => 72 );
- my $old_deadline = $now->clone->subtract( years => 1 );
+ my $now = DateTime->now( time_zone => 'Europe/Berlin' );
+ my $verification_deadline = $now->clone->subtract( hours => 48 );
+ my $deletion_deadline = $now->clone->subtract( hours => 72 );
+ my $old_deadline = $now->clone->subtract( years => 1 );
my $old_notification_deadline = $now->clone->subtract( weeks => 4 );
my $db = $self->app->pg->db;
@@ -93,6 +93,7 @@ sub run {
);
for my $user ( $to_notify->hashes->each ) {
+ say "Sending account deletion notification to uid $user->{id}...";
$self->app->sendmail->age_deletion_notification(
name => $user->{name},
email => $user->{email},