From 5e77eeae044804d332fbdb330fe5cc086c5472a2 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 12 Apr 2015 17:38:08 +0300 Subject: [PATCH] Fix create_job --- lib/Gruntmaster/Data.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.39.2