mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 12:03:33 -05:00
Fix fallback to custom s3 buckets
This commit is contained in:
parent
9a03a3406e
commit
65f19346f0
2 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ module.exports = function(primary, fallback) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _getFallbackBucket(bucket) {
|
function _getFallbackBucket(bucket) {
|
||||||
return Settings.filestore.fallback.buckets[bucket]
|
return Settings.filestore.fallback.buckets[bucket] || bucket
|
||||||
}
|
}
|
||||||
|
|
||||||
function _wrapFallbackMethod(method) {
|
function _wrapFallbackMethod(method) {
|
||||||
|
|
|
@ -374,7 +374,7 @@ describe('Filestore', function() {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
if (backend === 'S3Persistor') {
|
if (backend === 'S3Persistor' || backend === 'FallbackGcsToS3Persistor') {
|
||||||
describe('with a file in a specific bucket', function() {
|
describe('with a file in a specific bucket', function() {
|
||||||
let constantFileContent, fileId, fileUrl, bucketName
|
let constantFileContent, fileId, fileUrl, bucketName
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue