aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2018-09-19 17:40:07 +0100
committerDave Arter <davea@mysociety.org>2018-09-28 16:19:47 +0100
commit64cb4e23433b9fb7862f763e1819b6ac3318c3e6 (patch)
tree72fcad96068a4997fa23a670c6ec97d393334302 /bin
parentec55469dadd99dd0f20d3d0c3b4202b6b70bb6ab (diff)
Factor out photo storage into PhotoStorage::FileSystem backend
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fixmystreet.com/fixture4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/fixmystreet.com/fixture b/bin/fixmystreet.com/fixture
index 091fcab9d..2f882381a 100755
--- a/bin/fixmystreet.com/fixture
+++ b/bin/fixmystreet.com/fixture
@@ -19,6 +19,7 @@ use List::Util qw(shuffle);
use Path::Tiny;
use FixMyStreet;
use FixMyStreet::Cobrand;
+use FixMyStreet::PhotoStorage;
use FixMyStreet::DB::Factories;
use Getopt::Long::Descriptive;
@@ -111,8 +112,7 @@ foreach (FixMyStreet::Cobrand->available_cobrand_classes) {
}
}
-my $cache_dir = path(FixMyStreet->config('UPLOAD_DIR'));
-$cache_dir->mkpath;
+FixMyStreet::PhotoStorage::backend->init()
my $user = $users{'user@example.org'};
my $num = 20;