]> iEval git - gruntmaster-data.git/commitdiff
Fix rerun_job (twice)
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 12 Apr 2015 14:58:53 +0000 (17:58 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 12 Apr 2015 14:58:53 +0000 (17:58 +0300)
lib/Gruntmaster/App/Command/Rerun.pm
lib/Gruntmaster/Data.pm

index b5e98a83e722c2134a8d8104144d78a97e63cff1..a63800b9bf4bcfc2242d7df5cb1c1faecad50250 100644 (file)
@@ -20,7 +20,7 @@ sub validate_args {
 sub execute {
        my ($self, $opt, $args) = @_;
        my ($obj) = @$args;
 sub execute {
        my ($self, $opt, $args) = @_;
        my ($obj) = @$args;
-       db->rerun_job($obj);
+       rerun_job $obj;
 }
 
 1;
 }
 
 1;
index 6ddada4a5d64d891dffc3bef5bbd961cbe3d617d..ea4fa3bb351a21cd532d518986c5c4ec014b9a5c 100644 (file)
@@ -287,7 +287,7 @@ sub update_status {
 
 sub rerun_job {
        my ($id) = @_;
 
 sub rerun_job {
        my ($id) = @_;
-       $db->query(rerun_job_sth => $id);
+       query rerun_job_sth => $id;
        purge '/log/';
        purge "/log/$id";
 }
        purge '/log/';
        purge "/log/$id";
 }
This page took 0.02175 seconds and 4 git commands to generate.