mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-01 05:16:44 -06:00
Fix #4179
This commit is contained in:
parent
c3140f57b9
commit
27768081e2
1 changed files with 3 additions and 3 deletions
|
@ -72,15 +72,15 @@ export default function load() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.drive.storage === 'minio') {
|
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.';
|
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.';
|
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.';
|
throw 'You need to configure the minio.';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue