1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

use require instead of import

This commit is contained in:
PTR-inc 2025-02-21 19:35:43 +01:00
parent 66cb0656a6
commit b5635e89cc

2
db.js
View file

@ -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,