mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Use correct object path for s3BucketCreds
This commit is contained in:
parent
9d52c521c4
commit
d8470d4a59
2 changed files with 5 additions and 5 deletions
|
@ -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]
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue