mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 23:20:47 +02:00
Merge pull request #3495 from overleaf/ae-prettier-2
Upgrade Prettier to v2 GitOrigin-RevId: 85aa3fa1acb6332c4f58c46165a43d1a51471f33
This commit is contained in:
@@ -40,8 +40,8 @@ module.exports = ProjectUploadController = {
|
||||
user_id,
|
||||
name,
|
||||
path,
|
||||
function(error, project) {
|
||||
fs.unlink(path, function() {})
|
||||
function (error, project) {
|
||||
fs.unlink(path, function () {})
|
||||
timer.done()
|
||||
if (error != null) {
|
||||
logger.error(
|
||||
@@ -88,8 +88,8 @@ module.exports = ProjectUploadController = {
|
||||
name,
|
||||
path,
|
||||
true,
|
||||
function(error, entity) {
|
||||
fs.unlink(path, function() {})
|
||||
function (error, entity) {
|
||||
fs.unlink(path, function () {})
|
||||
timer.done()
|
||||
if (error != null) {
|
||||
logger.error(
|
||||
@@ -132,7 +132,7 @@ module.exports = ProjectUploadController = {
|
||||
.status(500)
|
||||
.json({ success: false, error: req.i18n.translate('upload_failed') })
|
||||
}
|
||||
return upload.single('qqfile')(req, res, function(err) {
|
||||
return upload.single('qqfile')(req, res, function (err) {
|
||||
if (err instanceof multer.MulterError && err.code === 'LIMIT_FILE_SIZE') {
|
||||
return res
|
||||
.status(422)
|
||||
|
||||
Reference in New Issue
Block a user