Skip to content

Commit

Permalink
Mojo::Asset::File is Mojo::Asset::Memory when called in test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfranck committed Sep 17, 2019
1 parent fa3682b commit b26ad46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LibreCat/Controller/FileApi.pm
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ sub upload_file {

}

$files->upload(IO::File->new($upload->asset->path), $upload->filename);
$files->upload(IO::File->new($upload->asset->to_file->path), $upload->filename);

my $file = $files->get($upload->filename);

Expand Down

0 comments on commit b26ad46

Please sign in to comment.