From 008e1ae4e497f2ea8aa1f1eeab8533567dbad586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 24 Oct 2025 11:27:43 -0400 Subject: [PATCH] lint: fix lint --- src/middleware/multer.js | 5 +++-- src/routes/authentication.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/middleware/multer.js b/src/middleware/multer.js index 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/files fileFilter: (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.js index 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,