mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-28 23:32:26 +00:00
prevent double callback in getFileStream
This commit is contained in:
parent
c74356daeb
commit
55c4e220fa
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ module.exports =
|
|||
@sendFile bucketName, key, fsPath, callback
|
||||
|
||||
getFileStream: (bucketName, key, callback = (err, res)->)->
|
||||
callback = _.once callback
|
||||
logger.log bucketName:bucketName, key:key, "getting file from s3"
|
||||
s3Client = knox.createClient
|
||||
key: settings.filestore.s3.key
|
||||
|
|
Loading…
Reference in a new issue