MassRecordCreationAndPrinting: dbh transactions sicherer
authorWerner Hahn <wh@futureworldsearch.net>
Wed, 16 Feb 2022 09:09:21 +0000 (10:09 +0100)
committerWerner Hahn <wh@futureworldsearch.net>
Wed, 16 Feb 2022 09:09:21 +0000 (10:09 +0100)
SL/BackgroundJob/MassRecordCreationAndPrinting.pm

index ebd20e1..4cc2519 100644 (file)
@@ -42,7 +42,7 @@ sub create_invoices {
 
   my $job_obj = $self->{job_obj};
   my $db      = $job_obj->db;
-  my $dbh     = SL::DB->client->dbh;
+  my $dbh     = $db->dbh;
 
   $job_obj->set_data(status => CONVERTING_DELIVERY_ORDERS())->save;