summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command/work.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-11-28 21:03:51 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-11-28 21:03:51 +0100
commit77ecd6d034440d542ecba8e56c6d6917d73bf834 (patch)
treec0c187a0a0b1bdd8f2ce3dc9aa2e0095a53ee040 /lib/Travelynx/Command/work.pm
parentfe08e98067a181ea360532c18eff63a90a2687c0 (diff)
move statistics cache to a separate model class
Diffstat (limited to 'lib/Travelynx/Command/work.pm')
-rw-r--r--lib/Travelynx/Command/work.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index f9b78b6..16b41b2 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -1,4 +1,5 @@
package Travelynx::Command::work;
+
# Copyright (C) 2020 Daniel Friesel
#
# SPDX-License-Identifier: MIT
@@ -293,7 +294,7 @@ sub run {
# own by-year journey log.
for my $user ( $db->select( 'users', 'id', { status => 1 } )->hashes->each )
{
- $self->app->get_journey_stats(
+ $self->app->journeys->get_stats(
uid => $user->{id},
year => $now->year
);