mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-03 07:44:27 +00:00
Amend: remove unused params
This commit is contained in:
parent
336a38ec1e
commit
03033409c6
1 changed files with 2 additions and 3 deletions
|
@ -9,7 +9,6 @@ module.exports = BucketController =
|
|||
getFile: (req, res)->
|
||||
{bucket} = req.params
|
||||
key = req.params[0]
|
||||
{format, style} = req.query
|
||||
credentials = settings.filestore.s3[bucket]
|
||||
options = {
|
||||
key: key,
|
||||
|
@ -20,11 +19,11 @@ module.exports = BucketController =
|
|||
logger.log key:key, bucket:bucket, "receiving request to get file from bucket"
|
||||
FileHandler.getFile bucket, key, options, (err, fileStream)->
|
||||
if err?
|
||||
logger.err err:err, key:key, bucket:bucket, format:format, style:style, "problem getting file from bucket"
|
||||
logger.err err:err, key:key, bucket:bucket, "problem getting file from bucket"
|
||||
if err instanceof Errors.NotFoundError
|
||||
return res.send 404
|
||||
else
|
||||
return res.send 500
|
||||
else
|
||||
logger.log key:key, bucket:bucket, format:format, style:style, "sending bucket file to response"
|
||||
logger.log key:key, bucket:bucket, "sending bucket file to response"
|
||||
fileStream.pipe res
|
||||
|
|
Loading…
Reference in a new issue