]> iEval git - gruntmaster-data.git/commitdiff
Fix create_job
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 12 Apr 2015 14:38:08 +0000 (17:38 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 12 Apr 2015 14:38:08 +0000 (17:38 +0300)
lib/Gruntmaster/Data.pm

index 7b6807959ec522affbcbc156f48f0a92292159d7..6ddada4a5d64d891dffc3bef5bbd961cbe3d617d 100644 (file)
@@ -203,7 +203,7 @@ sub job_full {
 
 sub create_job {
        my (%args) = @_;
-       $db->update('users', {lastjob => time});
+       $db->update('users', {lastjob => time}, {id => $args{owner}});
        purge '/log/';
        scalar $db->insert('jobs', \%args, {returning => 'id'})->list
 }
This page took 0.022909 seconds and 4 git commands to generate.