From eed4be49aba4d54b18860a2ceb6b5dfd837c9286 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Wed, 1 May 2019 21:58:35 -0700 Subject: [PATCH] Fix data being passed along to daemon --- app/Repositories/Wings/FileRepository.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Repositories/Wings/FileRepository.php b/app/Repositories/Wings/FileRepository.php index 3b2006634..be37d392c 100644 --- a/app/Repositories/Wings/FileRepository.php +++ b/app/Repositories/Wings/FileRepository.php @@ -79,8 +79,10 @@ class FileRepository extends BaseWingsRepository implements FileRepositoryInterf return $this->getHttpClient()->post( sprintf('/api/servers/%s/files/create-directory', $this->getServer()->uuid), [ - 'name' => $name, - 'directory' => $path, + 'json' => [ + 'name' => $name, + 'path' => $path, + ], ] ); }