From b5635e89cc71e47e0b7a078bce223321dc519e51 Mon Sep 17 00:00:00 2001 From: PTR-inc Date: Fri, 21 Feb 2025 19:35:43 +0100 Subject: [PATCH] use require instead of import --- db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.js b/db.js index 931157ed..bedbf43c 100644 --- a/db.js +++ b/db.js @@ -3778,7 +3778,7 @@ module.exports.CreateDB = function (parent, func) { async function webDAVBackup(filename, func) { try { - const webDAV = await import ('webdav'); + const webDAV = require('webdav'); const wdConfig = parent.config.settings.autobackup.webdav; const client = webDAV.createClient(wdConfig.url, { username: wdConfig.username,