Skip to content

Commit

Permalink
Server: Fixed S3 configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Nov 11, 2021
1 parent 3cdbd6d commit dfa5f8b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`);
}

0 comments on commit dfa5f8b

Please sign in to comment.