mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-27 08:21:03 +02:00
Server: Fixed S3 configuration
This commit is contained in:
parent
3cdbd6dd15
commit
dfa5f8b357
@ -61,5 +61,9 @@ export default async function(config: StorageDriverConfig | number, db: DbConnec
|
||||
return new StorageDriverMemory(storageId, config);
|
||||
}
|
||||
|
||||
throw new Error(`Invalid config: ${JSON.stringify(config)}`);
|
||||
if (config.type === StorageDriverType.S3) {
|
||||
return new StorageDriverMemory(storageId, config);
|
||||
}
|
||||
|
||||
throw new Error(`Invalid config type: ${JSON.stringify(config)}`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user