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 17:12:35 +00:00
|
|
|
package Pear::LocalLoop::Plugin::Minion::Job::csv_transaction_import;
|
|
|
|
use Mojo::Base 'Pear::LocalLoop::Plugin::Minion::Job';
|
|
|
|
|
|
|
|
use Pear::LocalLoop::Import::LCCCsv::Transactions;
|
|
|
|
|
|
|
|
sub run {
|
2019-07-14 14:15:14 +00:00
|
|
|
my ($self, $filename, $entity_id) = @_;
|
2019-07-08 17:12:35 +00:00
|
|
|
|
2019-07-14 14:15:14 +00:00
|
|
|
Pear::LocalLoop::Import::LCCCsv::Transactions->new(
|
|
|
|
csv_file => $filename,
|
|
|
|
schema => $self->app->schema,
|
|
|
|
target_entity_id => $entity_id,
|
2019-07-08 17:12:35 +00:00
|
|
|
)->import_csv;
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|