1 package SL::DB::Manager::CsvImportReport;
5 use base qw(SL::DB::Helper::Manager);
7 sub object_class { 'SL::DB::CsvImportReport' }
9 __PACKAGE__->make_manager_methods;
14 $::auth->active_session_ids;
17 my $objects = $self->get_all(query => [
18 '!session_id' => [ $::auth->active_session_ids ]
21 $_->destroy for @$objects;
23 # get reports for the active session that aren't the latest
24 $objects = $self->get_all(
25 query => [ session_id => $::auth->get_session_id, ],
30 for (0 .. $#$objects - 1) {
31 $objects->[$_]->destroy;