need to check headers first

This commit is contained in:
Thomas Bloor 2019-09-10 09:32:15 +01:00
parent 9299c46fdf
commit acad46a9b5
No known key found for this signature in database
GPG key ID: 4657C7EBE42CC5CC

View file

@ -15,6 +15,8 @@ has '+csv_required_columns' => (
sub import_csv {
my ($self) = @_;
$self->check_headers;
while ( my $row = $self->get_csv_line ) {
$self->_row_to_result($row);
}