1
0
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:
Laurent Cozic 2021-11-11 15:21:27 +00:00
parent 3cdbd6dd15
commit dfa5f8b357

View File

@ -61,5 +61,9 @@ export default async function(config: StorageDriverConfig | number, db: DbConnec
return new StorageDriverMemory(storageId, config); 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)}`);
} }