From 686bacca70a42bb30472d8d1db02ed8ce77fda4d Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 12 Apr 2015 17:58:53 +0300 Subject: [PATCH] Fix rerun_job (twice) --- lib/Gruntmaster/App/Command/Rerun.pm | 2 +- lib/Gruntmaster/Data.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Gruntmaster/App/Command/Rerun.pm b/lib/Gruntmaster/App/Command/Rerun.pm index b5e98a8..a63800b 100644 --- a/lib/Gruntmaster/App/Command/Rerun.pm +++ b/lib/Gruntmaster/App/Command/Rerun.pm @@ -20,7 +20,7 @@ sub validate_args { sub execute { my ($self, $opt, $args) = @_; my ($obj) = @$args; - db->rerun_job($obj); + rerun_job $obj; } 1; diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 6ddada4..ea4fa3b 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -287,7 +287,7 @@ sub update_status { sub rerun_job { my ($id) = @_; - $db->query(rerun_job_sth => $id); + query rerun_job_sth => $id; purge '/log/'; purge "/log/$id"; } -- 2.39.2