Node.js based forum software built for the modern web
lint: fix lint
Barış Soner Uşaklı008e1ae4e497
diff --git a/src/middleware/multer.js b/src/middleware/multer.jsindex e15c146ff3..e288fe309e 100644--- a/src/middleware/multer.js+++ b/src/middleware/multer.js@@ -2,14 +2,15 @@const multer = require('multer');const storage = multer.diskStorage({});-const upload = multer({ storage,+const upload = multer({+ storage,// from https://github.com/TriliumNext/Trilium/pull/3058/filesfileFilter: (req, file, cb) => {// UTF-8 file names are not well decoded by multer/busboy, so we handle the conversion on our side.// See https://github.com/expressjs/multer/pull/1102.file.originalname = Buffer.from(file.originalname, 'latin1').toString('utf-8');cb(null, true);- }+ },});module.exports = upload;diff --git a/src/routes/authentication.js b/src/routes/authentication.jsindex 9836cf22a5..a4290544a1 100644--- a/src/routes/authentication.js+++ b/src/routes/authentication.js@@ -154,7 +154,7 @@ Auth.reloadRoutes = async function (params) {});});- const upload = require('../middleware/multer')+ const upload = require('../middleware/multer');const middlewares = [upload.any(),Auth.middleware.applyCSRF,