mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't send multiple status codes on insertFile error
This commit is contained in:
parent
d6b3262ac7
commit
bc6c8d6afc
1 changed files with 2 additions and 1 deletions
|
@ -49,7 +49,8 @@ module.exports = FileController =
|
|||
if err?
|
||||
logger.log err: err, key: key, bucket: bucket, "error inserting file"
|
||||
res.send 500
|
||||
res.send 200
|
||||
else
|
||||
res.send 200
|
||||
|
||||
copyFile: (req, res)->
|
||||
metrics.inc "copyFile"
|
||||
|
|
Loading…
Reference in a new issue