From: Marius Gavrilescu Date: Sun, 12 Apr 2015 14:38:08 +0000 (+0300) Subject: Fix create_job X-Git-Tag: 5999.000_014~27 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=5e77eeae044804d332fbdb330fe5cc086c5472a2;p=gruntmaster-data.git Fix create_job --- diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 7b68079..6ddada4 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -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 }