mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Amend: fix params retrieval
This commit is contained in:
parent
ece650741a
commit
cfbf0d81ba
2 changed files with 5 additions and 4 deletions
|
@ -7,8 +7,8 @@ Errors = require('./Errors')
|
|||
module.exports = BucketController =
|
||||
|
||||
getFile: (req, res)->
|
||||
{bucket} = req
|
||||
key = req[0]
|
||||
{bucket} = req.params
|
||||
key = req.params[0]
|
||||
{format, style} = req.query
|
||||
credentials = settings.filestore.s3&[bucket]
|
||||
options = {
|
||||
|
|
|
@ -43,9 +43,10 @@ describe "BucketController", ->
|
|||
@bucket = "user_files"
|
||||
@key = "#{@project_id}/#{@file_id}"
|
||||
@req =
|
||||
bucket:@bucket
|
||||
0:@key
|
||||
query:{}
|
||||
params:
|
||||
bucket: @bucket
|
||||
0: @key
|
||||
headers: {}
|
||||
@res =
|
||||
setHeader: ->
|
||||
|
|
Loading…
Reference in a new issue