mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
revert settings.persistorManager
This commit is contained in:
parent
4b5f9ad4fb
commit
e0f0bfb0ea
3 changed files with 6 additions and 6 deletions
|
@ -2,9 +2,9 @@ settings = require("settings-sharelatex")
|
|||
logger = require("logger-sharelatex")
|
||||
S3PersistorManager = require("./S3PersistorManager")
|
||||
|
||||
logger.log backend:settings.persistorManager, "Loading backend"
|
||||
module.exports = switch settings.persistorManager
|
||||
logger.log backend:settings.filestoreBackend, "Loading backend"
|
||||
module.exports = switch settings.filestoreBackend
|
||||
when "s3",null
|
||||
S3PersistorManager
|
||||
else
|
||||
throw new Error( "Unknown filestore backend: #{settings.persistorManager}" )
|
||||
throw new Error( "Unknown filestore backend: #{settings.filestoreBackend}" )
|
||||
|
|
|
@ -8,7 +8,7 @@ module.exports =
|
|||
# current options are:
|
||||
# "s3" - Amazon S3
|
||||
# if no persistor is chosen, s3 will be used by default
|
||||
persistorManager: "s3"
|
||||
filestoreBackend: "s3"
|
||||
|
||||
# ShareLaTeX stores binary files like images in S3.
|
||||
# Fill in your Amazon S3 credentials below.
|
||||
|
|
|
@ -22,7 +22,7 @@ describe "PersistorManagerTests", ->
|
|||
describe "test s3 mixin", ->
|
||||
beforeEach ->
|
||||
@settings =
|
||||
persistorManager: "s3"
|
||||
filestoreBackend: "s3"
|
||||
@requires =
|
||||
"./S3PersistorManager": @S3PersistorManager
|
||||
"settings-sharelatex": @settings
|
||||
|
@ -81,7 +81,7 @@ describe "PersistorManagerTests", ->
|
|||
describe "test invalid mixins", ->
|
||||
it "should not load an invalid wrapper", (done) ->
|
||||
@settings =
|
||||
persistorManager:"magic"
|
||||
filestoreBackend:"magic"
|
||||
@requires =
|
||||
"./S3PersistorManager": @S3PersistorManager
|
||||
"settings-sharelatex": @settings
|
||||
|
|
Loading…
Reference in a new issue