This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
2019-07-08 15:41:59 +00:00
|
|
|
package Pear::LocalLoop::Plugin::Minion::Job::csv_supplier_import;
|
|
|
|
use Mojo::Base 'Pear::LocalLoop::Plugin::Minion::Job';
|
|
|
|
|
2019-07-08 17:12:35 +00:00
|
|
|
use Pear::LocalLoop::Import::LCCCsv::Suppliers;
|
2019-07-08 15:41:59 +00:00
|
|
|
|
2019-07-08 17:12:35 +00:00
|
|
|
sub run {
|
|
|
|
my ( $self, $filename ) = @_;
|
2019-07-08 15:41:59 +00:00
|
|
|
|
2019-07-08 17:12:35 +00:00
|
|
|
my $csv_import = Pear::LocalLoop::Import::LCCCsv::Suppliers->new(
|
|
|
|
csv_file => $filename,
|
|
|
|
schema => $self->app->schema
|
|
|
|
)->import_csv;
|
2019-07-08 15:41:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|