From 32d0b41ac6ed433402be77948314b39f02e4f0bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Thu, 7 Feb 2019 20:14:15 +0900 Subject: [PATCH] Fix #4179 --- src/config/load.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/load.ts b/src/config/load.ts index 29e4a66f9..13ea237e2 100644 --- a/src/config/load.ts +++ b/src/config/load.ts @@ -72,15 +72,15 @@ export default function load() { } if (config.drive.storage === 'minio') { - if (typeof config.drive.storage.bucket !== 'string') { + if (typeof config.drive.bucket !== 'string') { throw 'You need to configure the minio bucket.'; } - if (typeof config.drive.storage.prefix !== 'string') { + if (typeof config.drive.prefix !== 'string') { throw 'You need to configure the minio prefix.'; } - if (config.drive.storage.prefix.config == null) { + if (config.drive.prefix.config == null) { throw 'You need to configure the minio.'; } }