need to check headers first

This commit is contained in:
Thomas Bloor 2019-09-10 09:32:15 +01:00
parent b3139c3bf0
commit 1075f59086

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);
}