mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 11:01:56 +02:00
Don't send multiple status codes on insertFile error
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user