Use correct object path for s3BucketCreds

This commit is contained in:
Simon Detheridge 2020-01-08 11:20:44 +00:00
parent 9d52c521c4
commit d8470d4a59
2 changed files with 5 additions and 5 deletions

View file

@ -258,11 +258,11 @@ function _getClientForBucket(bucket) {
}
if (
settings.filestore.s3.s3BucketCreds &&
settings.filestore.s3.s3BucketCreds[bucket]
settings.filestore.s3BucketCreds &&
settings.filestore.s3BucketCreds[bucket]
) {
_clients[bucket] = new S3(
_buildClientOptions(settings.filestore.s3.s3BucketCreds[bucket])
_buildClientOptions(settings.filestore.s3BucketCreds[bucket])
)
return _clients[bucket]
}

View file

@ -195,8 +195,8 @@ describe('S3PersistorManagerTests', function() {
}
beforeEach(async function() {
settings.filestore.s3.s3BucketCreds = {}
settings.filestore.s3.s3BucketCreds[bucket] = {
settings.filestore.s3BucketCreds = {}
settings.filestore.s3BucketCreds[bucket] = {
auth_key: alternativeKey,
auth_secret: alternativeSecret
}