]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Manager/CsvImportReport.pm
BUG-FIX: Rose kann nur sort_by
[mfinanz.git] / SL / DB / Manager / CsvImportReport.pm
index 370a6c97fb86b60fcc1ab68e3bd9b00192de3f64..f5ce9b92a47d3e50e42935ccb523ea707d214ead 100644 (file)
@@ -15,9 +15,7 @@ sub cleanup {
 
   # get expired reports
   my $objects = $self->get_all(query => [
-    session_id => [
-      not => [ $::auth->active_session_ids ]
-    ]
+   '!session_id' => [ $::auth->active_session_ids ]
   ]);
 
   $_->destroy for @$objects;
@@ -25,7 +23,7 @@ sub cleanup {
   # get reports for the active session that aren't the latest
   $objects = $self->get_all(
     query => [ session_id => $::auth->get_session_id, ],
-    order_by => [ 'id' ],
+    sort_by => [ 'id' ],
   );
 
   # skip the last one