From 8de942fa15cd119e04f68742704a80ce7da3fd97 Mon Sep 17 00:00:00 2001 From: Teppo Kurki Date: Tue, 15 Aug 2023 21:47:47 +0300 Subject: [PATCH] fix: restore not working Busboy API changed in 1.0.0 https://github.com/mscdex/busboy/issues/266 and 7265ecb updated busboy and broke uploading to restore settings. --- src/serverroutes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serverroutes.ts b/src/serverroutes.ts index 8f83ef3ff..1d2f87ceb 100644 --- a/src/serverroutes.ts +++ b/src/serverroutes.ts @@ -1026,7 +1026,7 @@ module.exports = function ( fieldname: string, // eslint-disable-next-line @typescript-eslint/no-explicit-any file: any, - filename: string + { filename } ) => { try { if (!filename.endsWith('.backup')) {