This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/lib/Pear/LocalLoop/Plugin/Minion/Job/leaderboards_recalc.pm

13 lines
280 B
Perl
Raw Normal View History

package Pear::LocalLoop::Plugin::Minion::Job::leaderboards_recalc;
use Mojo::Base 'Pear::LocalLoop::Plugin::Minion::Job';
sub run {
2021-03-20 12:09:50 +00:00
my ( $self, @args ) = @_;
2021-03-20 12:09:50 +00:00
my $leaderboard_rs = $self->app->schema->resultset('Leaderboard');
2021-03-20 12:09:50 +00:00
$leaderboard_rs->recalculate_all;
}
1;